Hello,
I’m a beginner and was watching the lesson of mosh of how to write to text files. I’m working in Xcode and after writing my code and running it:
(…) int main () {
ofstream file;
file.open(“data.txt”);
if (file.is_open() ) {
file << "Hello world! " << endl;
file.close();
}
return 0;
}
I can not find the file in the project, mosh also didn’t really explained it where I could find it on Xcode. Could someone help me in this matter?
Thank you !