The following operations on files are described in the reference pages.
absolute_file_name(+RelFileName, ?AbsFileName)
Beware: absolute_file_name/2 mimics the filename resolution done
by commands such as compile/1. It is meant primarily
for looking up Prolog
source files. If you want to find the absolute filename of any
other file,
absolute_file_name/2 may not be appropriate.
See file_member_of_directory/2 in lib-lfi-fdi.
close(+FileNameOrStream)
current_stream(?AbsFileName, ?Mode, ?Stream)
current_stream/2 can be used to list
currently open streams and the files to which they are connected.
library_directory(?Directory)
open(+FileName, +Mode, -Stream)
write (append) it will (may) create a new file.
see(+FileNameOrStream)
tell(+FileNameOrStream)
unix(cd(+Directory))
| ?- absolute_file_name(., CurrentDirectory).