Functions Flashcards
1
Q
close
A
Closes the file. Like:
File-> Save … in your editor.
2
Q
read
A
Reads the contents of the file.
You can Assign the result to a variable.
3
Q
truncate
A
Empties the file.
!Watch out if you care about the file!
4
Q
write(‘stuff’)
A
Writes “stuff” to the file.
5
Q
seek(0)
A
Moves the Read/Write Location to the beginning of the file.