Answer the following statements true (T) or false (F)
1. An alternative to using the open member function is to use the file stream object declaration itself to open the file.
2. File output may be formatted the same way as screen output.
3. The read and write member functions of fstream objects can only work with buffers specified by pointers to char.
4. string objects cannot be stored to a binary file without further processing because they contain pointers.
5. Opening a file with the flags ios::in | ios::out will preserve the contents of the file if the file already exists.
1. TRUE
2. TRUE
3. TRUE
4. TRUE
5. FALSE
You might also like to view...
The ________ function returns a specified number of characters starting from a specified position in the data
A) LEFT B) TRIM C) RIGHT D) MID
The ______ compares adjacent items and exchanges them if they are out of order.
a. selection sort b. binary search c. bubble sort d. quicksort