To open a file for read-write and random access requires
a. The usual definition of an ofstream or ifstream object.
b. A call to open ofstream or ifstream object, but there must be a second argument to the open function.
c. The stream to be defined using the class fstream. defined in the
d. The stream to be connected to the physical file object with first argument a C-string containing the physical file name and a second argument, ios::in | ios::out that specifies that the i/o with the file should be for either reading or writing.
e. #include
A complete answer requires c) d) and e)
Explanation: a) only defines an output stream or an input stream, respectively. b) is in error because the stream should be fstream and because the answer fails to specify the second argument for open().
You might also like to view...
A ____ is a series of still frames projected at a rate fast enough to fool the human eye into perceiving continuous motion.
A. video B. Web page C. clip D. movie
The complete list of sources used in a paper or report is called a bibliography
Indicate whether the statement is true or false
Windows 10 can display only one other clock(s) besides the default clock.??
Answer the following statement true (T) or false (F)
Most operating systems are designed for either 16-bit or 32-bit CPUs. _________________________
Answer the following statement true (T) or false (F)