vendredi 2 octobre 2020

Creating an ofstream for a `FILE*` - possible? [duplicate]

In C++11, is it possible to create an std::fstream corresponding to a FILE* C-standard-library file descriptor?

This would be the opposite of Getting a FILE* from a std::fstream .

and I'm specifically interested in an an std::ofstream, for writing to the file.

Aucun commentaire:

Enregistrer un commentaire