05-24-2007, 03:02 PM
I never tried to do something similar, but would try to: Open the file with File f.Open("file" "r"), read the first several lines, then sequentially read to eg 64 KB buffers and write to another file opened eg with File f2.Open("file2" "w"). When done, delete file1 and rename file2.