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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to