COLOUR:STANDARD
POSITION:028,114
TEXT:00,To open an existing file in the current directory you are in for reading,
TEXT:16,and to handle file data as text, you would type:
COLOUR:EUPHORIA
TEXT:32,integer file_id
TEXT:32,file_id = open("text.doc","r")
COLOUR:STANDARD
TEXT:32,To open an existing file in another directory on drive C: for appending
TEXT:16,data to the end of the file, and to treat the data as binary, you type:
COLOUR:EUPHORIA
TEXT:32,integer file_id
TEXT:32,file_id = open("c:\\binary\\database.bin","ab")
COLOUR:STANDARD
TEXT:32,Notice you have to use two slashes instead of one when defining the
TEXT:16,directory path. This is because \ is also a special character prefix.
