Module 05 Text Files
The __________ extension usually indicates that the file contains a Microsoft Word document.
.doc
A text file contains data that has been encoded as text, using a scheme such as _______ or Unicode.
ASCII
A file ________ is a small holding section of memory that file-bound information is first written to.
buffer
Assuming dataFile is a file stream object, the statement: dataFile.close();
closes a file
True/False: In C++ 11 you can pass a string object as argument to a file stream object's open member function.
false
A __________ is a short sequences of characters that appear at the end of a filename preceded by a period (known as a "dot").
filename extension
To allow file access in a program, you must #include this header file.
fstream
A binary file contains data that ______________ text
has not been converted to
A file must be ________ before data can be written to or read from it.
opened
Assuming outFile is a file stream object and number is a variable, which statement writes the contents of number to the file associated with outFile?
outFile << number;
There are two general ways to access data stored in a file: _____ access and direct access
sequential
A(n) ______________ file, you access data from the beginning of the file to the end of the file.
sequential access
When the file contains numbers, those numbers are stored in the file as a ______.
series of characters
This may be used to write information to a file.
stream insertion operator
A file ___________ is an object that is associated with a specific file and provides a way for the program to work with that file.
stream object
In general, there are two types of files: _________ and _________.
text, binary
True/False: It is possible to define a file stream object and open a file in one statement.
true
You cannot view the contents of a binary file with a text editor.
true