for example if i write to a file which is not there where my << given string to write goes?
int main(int argc, char** argv) { fstream my_file; if (argc>1) { my_file.open("my_file.txt", ios::out); cout << "File1 created successfully!"<<endl; } my_file << "Guru99"; my_file.close(); cout<<"Done"<<endl; return 0; }
Will it put it in memory or put it in dev/null kind of area?
1.4m articles
1.4m replys
5 comments
56.9k users