Search:
Forum
General C++ Programming
delete a file using fstream
delete a file using fstream
Nov 9, 2011 at 7:36pm UTC
hasanshehryarjaffri
(2)
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
Nov 9, 2011 at 7:37pm UTC
Nov 9, 2011 at 8:17pm UTC
kbw
(9488)
unlink()
http://pubs.opengroup.org/onlinepubs/007908799/xcu/unlink.html
http://msdn.microsoft.com/en-us/library/1c3tczd6%28v=vs.80%29.aspx
Nov 9, 2011 at 9:12pm UTC
andywestken
(4094)
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
Nov 10, 2011 at 2:04pm UTC
hasanshehryarjaffri
(2)
thanx a lot guyzzzzzz.
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs