File IO Flashcards

1
Q

Open / close

A

include
#include output stream
InFs.open(filename);
InFs.close();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to make sure open did open file

A

If(!inFs.open()) {

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What eof()

A

Function return true if stream operation reached end of file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is fail()

A

Returns true if function had an error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Stringstream

A

Creates stream class to operate on strings, use a string buffer that contains a sequence of characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Get

A

Get characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Getline

A

Gets line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly