delete a file using fstream

Guyz i am working on a project in which i need to delete a whole file during the program. can anybody tell me please how can we do it.
Last edited on
With the Microsoft C runtime, which comes with VC++, it's _unlink().

There is also C stdlib remove()
http://www.cplusplus.com/reference/clibrary/cstdio/remove/

And the WIN32 call, DeleteFile()
http://msdn.microsoft.com/en-us/library/windows/desktop/aa363915%28v=vs.85%29.aspx
thanx a lot guyzzzzzz.
Topic archived. No new replies allowed.