how to delete contents of an existing file using vc++

  • Thread starter Thread starter wayne
  • Start date Start date
W

wayne

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
 
wayne said:
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
 
Back
Top