Answer the following statements true (T) or false (F)
1) When a program sends data from itself to the outside, say to a file or the screen, we say it is writing the data on the file or to the screen.
2) An istream object is already an ifstream object with some extra, added features.
3) When you write ifstream inStream;
inStream.open(”infile.dat”);
the file, infile.dat must be located in the directory where the program is being
run.
4) When you use the open member function to tie a file name to a file stream, the file name is called the external file name, and the program refers to the file by the stream name.
5) A file is automatically closed when a program terminates, so there is never a need to close a file.
1) T
2) F
3) F
4) T
5) F
You might also like to view...
Appear, Fly in, and Grow & Turn are examples of ________ effects
A) Motion B) Entrance C) Emphasis D) Exit
Network administrators commonly configure and interact with a Cisco router via the Cisco ____________________.
Fill in the blank(s) with the appropriate word(s).