Delphi: Alternative to using Reset/ReadLn for text file reading

后端 未结 7 1226
时光取名叫无心
时光取名叫无心 2020-12-14 11:10

i want to process a text file line by line. In the olden days i loaded the file into a StringList:

slFile := TStringList.Create();
slFile.LoadFr         


        
7条回答
  •  盖世英雄少女心
    2020-12-14 11:48

    As it seems the FileMode variable is not valid for Textfiles, but my tests showed that multiple reading from the file is no problem. You didn't mention it in your question, but if you are not going to write to the textfile while it is read you should be good.

提交回复
热议问题