Hey, a script question in a language I know

I do it this way:
file1 = "myfile.txt"
myarray. = 0
k = 1
call stream file1, "C", "OPEN READ"
do while lines(file1) = 1
line = linein(file1)
myarray.k = line
k = k + 1
end
call stream file1, "C", "CLOSE"
now myarray.1 = the first line of your file. myarray.32 = line 32 of your file, etc. You could do whatever you want with each line as you pull it it, also. Or if it were a list of sectors (like a fig'd sectors list), you could do myarray.line = 1. Then you could later do a test like:
if myarray.4652 = 1 then do
call zocwriteln "Sector 4652 has a fig"
end
Does this make sense?