Hi guys i run this code and everything is good but when i go to the containing folder i can't find the text file !!..
#include <iostream>
#include <string>
#include <fstream>
int main(){
std::ofstream out_file{"../mohamed.txt"};
std::string line {};
if(!out_file){
std::cerr<<"problem creating file"<<std::endl;
return 1;
}
std::cout<<"Enter a text to the out file : ";
std::getline(std::cin,line);
out_file<<line<<std::endl;
out_file.close();
return 0;
}