|
-
March 6th, 2003, 10:35 AM
#1
Delete File associated with fstream
Hi,
In my program i have an fstream that creates a file "myfile.txt" in a directory. ie.
fstream file;
file.open("myfile.txt", ios:: out | ios::i n);
I was just wondering if there was anyway to delete that file "myfile.txt" from the directory within my program? I dont want it to exist after the program finishes executing.
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
|