Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > Faster method n...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 5990 of 6114
Post > Topic >>

Faster method needed - reading text files stored on local network

by fokrogh@[EMAIL PROTECTED] Feb 21, 2008 at 05:52 AM

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
 




 6 Posts in Topic:
Faster method needed - reading text files stored on local networ
fokrogh@[EMAIL PROTECTED]  2008-02-21 05:52:49 
Re: Faster method needed - reading text files stored on local ne
Anton <anton.txt@[EMAI  2008-02-21 14:50:43 
Re: Faster method needed - reading text files stored on local ne
Anton <anton.txt@[EMAI  2008-02-21 19:30:06 
Re: Faster method needed - reading text files stored on local ne
Hans-Peter Diettrich <  2008-02-21 21:28:22 
Re: Faster method needed - reading text files stored on local ne
Rob Kennedy <me3@[EMAI  2008-02-21 19:07:55 
Re: Faster method needed - reading text files stored on local ne
Marco van de Voort <ma  2008-02-22 10:14:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:29:24 CDT 2008.