Files Flashcards
1
Q
File
A
Sequence of bytes stored on a secondary storage device
2
Q
Where are they stored
A
Folders or directories
3
Q
Text files
A
Made up if strings each of which is terminated by a newline
4
Q
Binary files
A
Store information in application-specific formats e.g. PDF, JPEG
5
Q
Syntax for opening files
A
= open (,)
6
Q
Encoding
A
Specifically useful one for files that contain non-ascii characters(encoding=’utf-8’)
7
Q
Character encoding capable of encoding Unicode characters?
A
utf-8
8
Q
exceptions
A
Runtime error that can be checked for and dealt with in a program