Answers for "apertura file in c++"

C++
0

apertura file in c++

std::ifstream ifs("foo.txt");  // ifstream: Opens file "foo.txt" for reading only.

std::ofstream ofs("foo.txt");  // ofstream: Opens file "foo.txt" for writing only.

std::fstream iofs("foo.txt");  // fstream:  Opens file "foo.txt" for reading and writing.
Posted by: Guest on October-17-2020

Browse Popular Code Answers by Language