Hi All,
one question, i am coding c++ on mac's Xcode complier,
I can't find the example.txt file that the complier created as following:
i thought the file should be create inside the folder where my complied file is, but it is not.
#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;
}
so, where i can find "example.txt" file?
if i use finder, it doesn't help me, i am new to mac and Xcode.
thanks.