Hi,
I'm using Delphi 7 Personal and have written the following code in
order to read some text files (only line 3 to line 5) who are stored
on a local network server.
procedure ReadSomeLines (fileName: string);
var
fileData : TStringList;
readOneLine : String;
i : Integer;
begin
fileData := TStringList.Create;
fileData.LoadFromFile(fileName);
for i := 3 to 5 do
begin
readOneLine := fileData[i];
{do something with this line}
end;
end;
Unfortunately, this code works VERY slow. However, reading files from
CDROM works very fast.
Is there another faster way to read files from a local network?
Regards
Frank