open and read commands
Kenneth Brody
kenbrody at bestweb.net
Mon Dec 3 07:54:23 PST 2007
Quoting fp (Mon, 03 Dec 2007 08:22:21 -0700):
> Ken posted:
[...]
>> I'm not sure where you think that SEEK() fits into things here. If you
>> want to sequentially read the file, then READLINE() all by itself will
>> suffice, as each call will return the next line. (Assuming, of course,
>> that each thing you want to read is terminated with a newline.)
>>
>
> I stand corrected!
>
> I think to remember having experienced unexpected behavior when using
> readline() on a file where each line had different lengths (terminated
> with newline). When I ran the loop, I think the line termination made
> no difference and the string returned was based on chucks/blocks of
> data determined by the given parameters ...
Were you, perhaps, reading into a fixed-length field?
[...]
> The truth is that I gave up on readline() then since I found it too
> cumbersome compared to import ... and since all I wanted was to read a file
> sequentially, import did the job pretty easily.
>
> That said, I will bring myself up to speed with readline() thanks to your
> explanation.
Feel free to use whichever works better for your situation. I certainly
won't stop you, and neither will filePro. :-)
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list