#include<fstream.h>
#include<conio.h>
#include<direct.h>
void main()
{
clrscr();
mkdir("H:\\Documents\\MyFolder");
ofstream ofile("H:\\Documents\\Myfile.txt");
getch();
}
Neither the mkdir command is working, nor the ofstream statement. If I write
mkdir("H:\\MyFolder");
ifstream ofile("H:\\Myfile.txt");
it works
but
mkdir("H:\\Documents\\MyFolder");
ifstream ofile("H:\\Documents\\Myfile.txt");
Does not work....The Folder Document is already created.. Why??