Re: HELP with 'seek'
- Posted by Irv Mullins <irv at ELLIJAY.COM> Aug 20, 2000
- 501 views
On Sun, 20 Aug 2000, you wrote: > Irv, > > Again, Thanks. Lots of interesting stuff for me to study here. I like > your assignment of field numbers as constants. Make following the code > a lot clearer. I'm wondering how large is your data set? The technique of reading back to pick up the last three records would be necessary for HUGE data files, but more work than necessary for smaller sets (of, let's say, 10 - 20,000 lines). Better and faster to just read them into a sequence, and use the portion you want, especially since you eventually want the data in an array anyway. If you really are reading huge data sets, maybe a better way would be to find the end of the file, then read backwards until you count 3 linefeeds, then read forward from there. Regards, Irv