The ____________ fstream member function opens a file stream and connects the stream variable to a physical file whose name is the argument to the function.
a. close( )
b. overloaded operator <<( )
c. open( )
d. eof( )
e. flush( )
c)
Explanation: Part c) opens a file stream and connects it to a physical file. The argument is a C-string constant or variable. Part a) close() is used without argument to close the file to prevent file corruption, a possibility if the program terminates abnormally. Part b) has nothing to do with opening a file. Part d) returns a type bool value of true if the file pointer has attempted to read at end of file. Part e) flush( ) is used without argument to write the file buffer out to the physical medium.
You might also like to view...
string indexers treat strings as:
a) binary code b) ASCII code c) arrays of characters d) a character
Order the following operators from lowest to highest precedence.
!= % + = ! && >
When you move all files from a folder in one location to a folder in another location, the files are duplicated so that they are located in both the original folder location as well as the folder to which they were moved
Indicate whether the statement is true or false
The first time you open OneNote, you open a document
Indicate whether the statement is true or false