# File lib/kirbybase.rb, line 1033 def get_recs(table) encrypted = table.encrypted? recs = [] with_table(table) do |fptr| begin # Skip header rec. fptr.readline # Loop through table. while true # Record current position in table. fpos = fptr.tell rec, line_length = line_to_rec(fptr.readline, encrypted) next if rec.empty? rec << fpos << line_length recs << rec end # Here's how we break out of the loop... rescue EOFError end return recs end end