Board index » delphi » reading Unix-style text files

reading Unix-style text files

Is there any simple method for reading Unix <LF> text files as opposed to
M$-DOG <CR><LF> text files?

John

World-Wide-Web: The CB Radio of the 90's

 

Re:reading Unix-style text files


On Sat, 31 Aug 96 02:34:08 GMT, mi...@worldnet.att.net (John M. Miano)
wrote:

Quote
>Is there any simple method for reading Unix <LF> text files as opposed to
>M$-DOG <CR><LF> text files?

TStringList.LoadFromStream (and LoadFromFile) can read Unix, Mac, and
MS-DOS text files, correctly recognizing the line endings.
--
Ray Lischner, Author of Secrets of Delphi 2 (Waite Group Press)
Tempest Software, Corvallis, Oregon, USA  http://www.tempest-sw.com

Other Threads