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.