Files in Aergia work identically to Python.
@!:
open("file.txt", "r")
@!: "file.txt" "r"
<!:
file.read()
<!: file
>!:
file.write("some text")
>!: file "some text"
!!:
file.close()
!!: file