Programming 2- module 9) Flashcards
What is input/output and file handling?
Technical way of describing what happens in most programs: some data is input, something happens to it, and the result is output.
What is an example of input/output and file handling?
Student name entered (input)-> Saved onto a file called THISFORM (file handling) -> print onto a register list for fire drill (output).
What is an example of a process?
Opening a file: if you are to access the contents, rather like using clothes in a suitcase, you need to open it. In most cases, you need to identify how you plan to use it once it is open.
What would opening a file look like?
Work= Open(ClassList.csv, r)
What does .csv stand for?
Comma Separated Values.
What does .txt stand for?
‘Text’ files that have no formatting and are easily opened in a word processing program.
What are files stored as .csv files often?
Files in this format are often arrays that will easily import into a spreadsheet or database program.