+ 1
Why is there no ios::nocreate in linux?
been trying to figure out a way around this. ios::nocreate throws a std error. is there a header im missing? fstream boesnt include it. anyone else have the same problem??
2 Respostas
+ 3
It's because it's not part of standard C++.
If all you're doing is reading a file, you don't need to include it anyway. ifstream objects won't create the file if it doesn't exist; this is the default behavior already.
+ 1
iOS::in checks to see if the file is there. she. I add iOS::out or app. that's when it creats a file