Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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.
Source by riptutorial.com #
 
PREVIOUS NEXT
Tagged: #apertura #file
ADD COMMENT
Topic
Name
5+5 =