File IO Flashcards
1
Q
Open / close
A
include
#include output stream
InFs.open(filename);
InFs.close();
2
Q
How to make sure open did open file
A
If(!inFs.open()) {
}
3
Q
What eof()
A
Function return true if stream operation reached end of file
4
Q
What is fail()
A
Returns true if function had an error
5
Q
Stringstream
A
Creates stream class to operate on strings, use a string buffer that contains a sequence of characters
6
Q
Get
A
Get characters
7
Q
Getline
A
Gets line