|
-
Aug 28th, 2002, 10:41 AM
#1
Thread Starter
Fanatic Member
deleteing a file
i know its a stupid question..but how do i delete a file?
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Aug 28th, 2002, 10:53 AM
#2
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 28th, 2002, 05:33 PM
#3
Fanatic Member
Or (cross-platform):
Code:
#include <cstdio>
using namespace std;
//...
remove("myfile.txt");
Alcohol & calculus don't mix.
Never drink & derive.
-
Aug 28th, 2002, 08:17 PM
#4
Ya ya Baby!!!Me is Back
string sFileName = "c:\\abc.txt";
system("del"+sFilename);
-
Aug 29th, 2002, 01:09 PM
#5
Sorry daok, but beside that your solution is neither portable nor native, it won't work
string file = "c:\\abc.txt";
string command = "del " + file;
system(command.c_str());
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 30th, 2002, 10:47 AM
#6
Thread Starter
Fanatic Member
i decided to use doaks, becaus ei need delete all of the .ppm files
i think that was a best way i had for now...thanks for the help
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|