_____ are files to which data is written.
(Not rated)
(Not rated)
Output files Input files Active files Sequential files |
floppy disk book hard disk VCR tape |
exit append close output |
<iostream> <fstream> <pstream> <mstream> |
Opens myFile in read mode Opens myFile in append mode Creates an empty file named myFile Opens a file in input mode to write to |
at the end of the file at the beginning of the file in the middle of the file after the file header |
is_active is_open is_closed is_ready |
File, field, record, byte, bit File record, field, bit, byte File, record, field, byte, bit Record, file, field, bit, byte |
fstream instream outstream filestream |
C++ views each file as a sequential stream of bytes. Files are opened by creating objects of stream classes. Member functions of stream objects can be applied to file streams. istream, ostream, and iostream are derived from ifstream, ofstream, and fstream, respectively. |
Question 11.11. (TCO 13) Compare and contrast the mode operators ios::in, ios::app, and ios::out. Provide a C++ code segment that illustrates the use of these mode operators. (Points : 5 |
11 years ago
A1 Answer
NOT RATED
Purchase the answer to view it

- cppanswers3_1.docx