Hey all, so I'm trying to open and write to a file. Here is my code:
The Problem is that even though I am flushing the buffer with .close, It's not even creating the File anywhere on my disk. Anyone know what's wrong here?
Code:
ofstream ofile;
ofile.open("mySample.txt");
ofile << "Hello World, I am FileIO.\n\nP.S Luke I'm your Father";
ofile.close();
The Problem is that even though I am flushing the buffer with .close, It's not even creating the File anywhere on my disk. Anyone know what's wrong here?