By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,159 Members | 888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,159 IT Pros & Developers. It's quick & easy.

deleting files and directories

P: n/a
Hello!!
How can i delete files and folders using file hadnling in C++?

Thank You

Jul 23 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Casanova http://www.prashanthmohan.tk wrote:
How can i delete files and folders using file hadnling in C++?


You will have to look up "File system API" (or something like that) on
the documentation of your OS.

Regards,

--
Ney André de Mello Zunino
Jul 23 '05 #2

P: n/a
Casanova http://www.prashanthmohan.tk wrote:
Hello!!
How can i delete files and folders using file hadnling in C++?

Thank You


This is platform dependent. If you're looking for a platform independent
solution, look up the boost filesystem library on www.boost.org.

--
Matthias Kaeppler
Jul 23 '05 #3

P: n/a
Casanova http://www.prashanthmohan.tk wrote:
How can i delete files and folders using file hadnling in C++?


See 'std::remove' function from <cstdio>. It doesn't use "file handling",
though, and I am not sure what you meant by that. Whether that function
actually is capable of deleting directories is unspecified.

V
Jul 23 '05 #4

P: n/a
ok i want to implement this in windows. What i meant by C++ file
handling is that .. is there a special way in C++ (not using C's remove
function) to delete files and directories?

Jul 23 '05 #5

P: n/a
Casanova http://www.prashanthmohan.tk wrote:
ok i want to implement this in windows. What i meant by C++ file
handling is that .. is there a special way in C++ (not using C's remove
function) to delete files and directories?


No.
Jul 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.