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
> 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
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
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