Re: [fpc-pascal] File copying

2004-05-03 Thread Jim Wilson
At 05:40 PM 5/2/2004, you wrote: I'm writing code that includes file copying, but the method I'm currently using is far too slow. I'm currently just reading a file character by character, and spitting it out to another file, character by character. Unfortunately, that's brutally slow. I've alwa

Re: [fpc-pascal] File copying

2004-05-02 Thread Matt Emson
> Any suggestions on a better method? uses classes, sysutils; procedure CopyFile(filename, newfilename: string); var oldfile, newfile: TFilestream; begin oldfile := TFileStream.Create(filename, fmOpenRead); //might need fmShareXXX style stuff too try oldfile.Position := 0; //cou

Re: [fpc-pascal] File copying

2004-05-02 Thread Marc Santhoff
Am So, den 02.05.2004 schrieb Matthews um 23:40: > I'm writing code that includes file copying, but the method I'm currently > using is far too slow. I'm currently just reading a file > character by character, and spitting it out to another file, character by > character. Unfortunately, that's

[fpc-pascal] File copying

2004-05-02 Thread Matthews
I'm writing code that includes file copying, but the method I'm currently using is far too slow. I'm currently just reading a file character by character, and spitting it out to another file, character by character. Unfortunately, that's brutally slow. Any suggestions on a better method? -Luk