Where does the IDE place .txt files

http://www.cplusplus.com/doc/tutorial/files/

I just finished executing this but I didn't get any file on my desktop.

So where does the .txt file get placed on my computer?

1
2
3
4
5
6
7
8
9
10
11
12
// basic file operations
#include <iostream>
#include <fstream>
using namespace std;

int main () {
    ofstream myfile;
    myfile.open ("example.txt");
    myfile << "Writing this to a file.\n";
    myfile.close();
    return 0;
}
depends on the settings in the ide or the make file. try the same directory as the executable.
I meant to say in Xcode
Topic archived. No new replies allowed.