File Handling Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

To open a file to read

A

F= openRead(“filename.txt”)

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

To open a file to write

A

F= openWrite(“filename.txt”)

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

To read a line from a file

A

FileContent= F.readLine()

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

To return the end of a file

A

endOfFile()

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

To write a line to a file

A

F.writeLine(“Nick is awesome”)

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

To close a file

A

F.close()

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