[fpc-pascal] read lines at end of file

José Mejuto joshyfun at gmail.com
Thu Apr 14 17:03:29 CEST 2011


Hello John,

Thursday, April 14, 2011, 3:26:48 PM, you wrote:

JL> Hi there, thanks for this - looks a very complete function. I hadn't
JL> realised that best way would be to use streaming! I'm trying to write a 3
JL> line test program that just gets last 4 lines of a file.

JL> I'm not very familiar with obj pascal or streaming.  What vars &  uses
JL> clauses do I need to call your function?

JL> this is what I have - I still gets some error messages, missing tfilestream,
JL> tfilelist.

Just only "Classes". You can do the same using regular pascal files
but to me TStream is more clear.

-- 
Best regards,
 José




More information about the fpc-pascal mailing list