Re: Stopping ReadLn from removing lone CR's

Posted by Lee P12462 on August 20, 2008

In Reply to Re: Stopping ReadLn from removing lone CR's posted by Jenny, DelphiLand Team on August 19, 2008

Thanks Jenny. I did not create the files I'm reading so changing the intrarecord delimiter (CR) is not an option. What I ended up doing was writing my own "ReadLn" (called ReadARec) that uses BlockRead's and returns a logical record as a "String". It isn't quite as efficient as ReadLn but it works.

Thanks for confirming what I had had concluded about ReadLn's behavior.

Lee

Related articles