An alternative to using the open member function is to use the file stream object declaration itself to open the file.
Example: fstream dataFile("names.dat",ios::in|ios::out);
Correct Answer:
Verified
Q1: The _ member function reports when the
Q3: The read and write member functions of
Q4: The operation of moving to a particular
Q5: The stream member function fail() can be
Q6: The statement dataFile.close();
A) is illegal in C++.
B)
Q7: The state bit, _, can be tested
Q8: The _ may be used to write
Q9: The _ function can be used to
Q10: The member function, _, reads a single
Q11: string objects cannot be stored to a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents