Records and files Flashcards
1
Q
What steps does reading from and writing to file require
A
Open the file
Read from, or write to, the file
Close the file
2
Q
What is a record
A
A data structure consisting of a number of fields which can all be of different types
We can define what the structure looks like and then define variables with this structure
3
Q
What is a field
A
A single item of data in a record
4
Q
What is a file
A
Able to store a collection of records
5
Q
How do text fields look on a file
A