I'm not sure exactly what you want, but here are a few examples.
To read a record number from the console and output that record, do something like this:
dim i, k as integer
k = val(console.readline())
for i = 1 to 5
console.writeline(records(k, i))
next i
I'm not sure how else you would identify the record, but, for example, you can search the records for a value of "abc" in the first field like this:
For i = 1 to Last_Record
if records(i, 1) = "abc" then
' output the record to the user
end if
next i
Replace records(i, 1)
with records(i, 0)
to search for a record number.
If you want to search each field, you can add a nested loop:
For i = 1 to Last_Record
for k = 1 to 5
if records(i, k) = "abc" then
' output the record to the user
end if
next k
next i