vendredi 2 janvier 2015

No exception throw after open a file stream with non-exist files?

I am trying to use



std::ifstream inStream;
inStream.open(file_name);


If file_name does not exists, no exception is thrown. How can I make sure to throw in this case? I am using C++11


Aucun commentaire:

Enregistrer un commentaire