Dear all,
may i know how can i delete the contents of an existing file using
vc++?? also, i would like to know how can i delete the whole file?
thanks alot
wayne
Carl Daniel [VC++ MVP] - 05 May 2005 07:48 GMT
> Dear all,
>
> may i know how can i delete the contents of an existing file using
> vc++?? also, i would like to know how can i delete the whole file?
DeleteFile() deletes a file.
SetEndOfFile() can truncate a file (even down to a size of 0).
-cd