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