Great, thanks Bevan. It worked!
----- Original Message ----- From: "Bevan Edwards" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 13, 2004 10:18 PM
Subject: Re: [DUG] truncate a disk file
Hi Ross,
Try SetFilePointer followed by SetEndOfFile.
Regards,
Bevan
Ross Levis wrote:
I'm fairly sure it's not possible but I thought I would ask to be sure. Is there any way to truncate a file on disk without re-writing it to a new file and deleting the old one? Say I have a 40 meg file and I want to remove the last 128 bytes from the file. If it's not possible, it
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
