File Handling Flashcards

1
Q

Explain Write Function

A

writes the data stored in your program into a file to be stored

overwrite any data saved

takes 1 parameter so multiple variables will need to be saved into an array

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

Explain Read functions

A

reads data from a text or csv file so the data can be used in your program

Variables will need to be created to store the information you have retrieved

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

Explain Append function

A

writes to data stored in your program into a file, instead of
replacing existing data in the file it adds a new row.

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

Explain Open function

A

the open function opens an existing file or if an existing file name does not exist it will create a new file

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