open
Entity: function

close
Entity: predicate


Usage:
FILE is open(FileName, Mode)
close(FILE)

Opens/closes a file
close can be used to close a file or OLE server or a socket or MYSQL connection
 
FILE variable to accept file handle
FileName file name with the path
Mode the mode can be:

 "w" - writing (erases the old file),

 "w+"- writing (over the old file),

 "r" - reading,

 "r+"- reading and writing,

 "a" - appending (creates a new file if it does not exist),

 "a+"- appending (the file must exist),

 "b" - binary (cannot be used alone, add it on the end like "rb")

See also:

select_file
get
put