I have a big text file (about 100MB) and each lines are separated by CR character, and not CRLF.
I tried to read this text file, line by line using TStringList.LoadFromFile() or ReadLn(F,..), but both methods require the lines are separated by CRLF.
Do you have any efficient and fast method to read this kind of text file?
Thanks.
PS: I am using Delphi 7.
This should do it.
Read the text file into a memory stream.
Then fill the string list with the contents.
textList.Textaccepts any combination ofCR,LFandCRLFto form a line.