deleting files and directories

  • Thread starter Casanova http://www.prashanthmohan.tk
  • Start date
C

Casanova http://www.prashanthmohan.tk

Hello!!


How can i delete files and folders using file hadnling in C++?

Thank You
 
?

=?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?=

Casanova said:
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,
 
M

Matthias Kaeppler

Casanova said:
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.
 
V

Victor Bazarov

Casanova said:
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
 
C

Casanova http://www.prashanthmohan.tk

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?
 
V

Victor Bazarov

Casanova said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,661
Latest member
sxarexu

Latest Threads

Top