
18 Dec
2010
18 Dec
'10
5:44 a.m.
On 18/12/2010 11:12 AM, Clark Sims wrote:
Is there some way to downsize a file?
In unix land: #include <unistd.h> int ftruncate(int fildes, off_t length); int truncate(const char *path, off_t length); Another way is to seek to the offset then writ a block of zero length. In windows land: SetEndOfFile() (I think.....)