473,503 Members | 338 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

deleting files and directories

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

Thank You

Jul 23 '05 #1
5 1450
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1767
by: phpfrizzle | last post by:
Hi there, I have built a CMS, and in one part you have to be able to delete images. Structure like this: _root --> folder "img" --> file "1.jpg" --> file "2.jpg" --> folder "CMS" ...
1
582
by: Laura McCord | last post by:
Hi, I need to delete all directories in /var/www/html/test that are older than five days. I am new to python so how would I get started? Any tips or suggestions would be appreciated. Thanks, ...
4
1799
by: Guinness Mann | last post by:
Greetings, I can't figure out what to search on to find the documentation on how to completely delete a "solution" from VS.NET 2003. I have no problem at all deleting projects, but even if I...
6
4541
by: Martin Bischoff | last post by:
Hi, I'm creating temporary directories in my web app (e.g. ~/data/temp/temp123) to allow users to upload files. When I later delete these directories (from the code behind), the application...
4
3195
by: clintonG | last post by:
I started an application using Beta2 and now I've been having a variety of problems continuing to develop the application in 2.0 that I suspect may be related to left-over icky stuff. What can I...
2
2523
by: Josh Kandiko | last post by:
Hi, I've been having some frustrations with deleting files from the Isolated Storage directories. Basically, I want my application to remove all instances of configuration information for my...
1
1404
by: Lee | last post by:
Hi, when deleting a directory using;- string dir = "whatever"; Directory.Delete(dir); it fails if files/directories exist within the directory being deleted. is there an easy way of...
9
8318
by: potholer | last post by:
I have been asked to create a self deleting exe, it has been a curious task that has proved fruitless I have searched in various places but to no avail I can do it in vb6 using a batch file,...
12
2424
Nepomuk
by: Nepomuk | last post by:
Hi! I want to have my program delete some folders including all contents. For that, I wrote this method: private static void delete(String source) { File tmp = new File(source);...
0
7087
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.