7.Connect ofstream and streambuf and operations with streambufs. 8.basic file operations 9.Accessing Data in a File 10.writes formatted output to a file, using << 11.reads strings entered at the keyboard and writes them to disk
Formatted output operator<< inserts formatted data (public member function ofstd::basic_ostream<CharT,Traits>) Unformatted output put inserts a character (public member function ofstd::basic_ostream<CharT,Traits>) write inserts blocks of characters ...
} //display text(pre-formatted) } cout << "Enter name of the output text file: " <<endl; getline (cin, name); //Promt user to input output text ofstream output; //create stream object homework2 output.open (name.c_str() ); ...
Original: inserts formatted data The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion of std::basic_ostream) [edit] Unformatierte Eingabe Original: Unformatted input The text has...
Original: inserts formatted data The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::basic_ostream) [edit] Entrée non formaté Original: Unformatted input The text has been...