Send a link to your students to track their progress
23 Terms
1
New cards
one diagram for how to open a file
2
New cards
designator for reading
r
3
New cards
designator for writing
w
4
New cards
designator for appending
a
5
New cards
designators for reading/writing/appending binary data
rb, wb, ab
6
New cards
as a designator
r (for reading)
7
New cards
designator for reading and writing to a file
r+
8
New cards
one diagram of how to close a file
9
New cards
one diagram of how to operate on a file with one line of non-indented code
10
New cards
how to write to a file after it has been opened
11
New cards
how writing on to a file works
write will only write a single string write will write only strings write will not put a carriage return/new line after writing (You will need to explicitly put in a newline character (\n) if you want a newline)
12
New cards
how to open a file in a different directory
13
New cards
how to read from a file one line at a time (this uses a text file)