Reading a text file line by line: is TStringList the right way?
· #1For a small config file I do this:
Lines := TStringList.Create;
try
Lines.LoadFromFile('settings.txt');
for I := 0 to Lines.Count - 1 do
Process(Lines[I]);
finally
Lines.Free;
end;It works. Is it the right way, or is there something better for big files?