[fpc-pascal] Seek to EOF of file of byte

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sat Nov 18 20:00:28 CET 2017


On 2017-11-18 15:44, Mark Morgan Lloyd wrote:
> How should one do this?
> https://www.freepascal.org/docs-html/current/rtl/system/seekeof.html
> implies that it's only for text files, Seek(f, FileSize(f)) seems excessive.


Just curious, why would you consider the "old technology" instead of 
using TFileStream (or any of the other TStream descendants).

I'm actually busy converting some old apps that used "t: Text" style 
coding, and replacing it with more modern Stream-style code, and it 
works really well. Streams are so much more flexible.


Regards,
   Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list