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) open( )
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...
Suppose you have a Web site that your boss wants converted to run on a kiosk at the local airport. What changes will you have to consider?
What will be an ideal response?
You can create an animation in which the first image ____ into the second image.
a. layers b. exports c. morphs d. bleeds
Match the following terms to their meanings:
I. Landscape A. Type of page orientation that is used for ordinary text II. Section break B. Part of a document that is formatted differently than the rest III. Portrait of the document IV. Section C. Used to divide a document into multiple segments V. Next page D. A type of page orientation sometimes used for charts E. A type of section break
Tap ENTER ______ times to begin keying the date on a letter.
A. 1 B. 2 C. 3 D. 4