|
Copyright ® (1997-2013) EDMGROUP Pty Ltd - EZY Prolog Reference |
main page
File and Path Names
A set of standard predicates ease filename handling and enable searching for files on a disk.
filenamepath(STRING QualName, STRING Path, STRING Name)
filenamepath/3 is used to compose and decompose a fully qualified name around its path and filename.
filenamepath converts between QualName on one side, and Path and Name on the other.
Please, using the (o,i,i) flow pattern of this predicate, take into account some special cases described in the filenamepath topic.
filenameext(STRING Name, STRING BaseName, STRING Ext)
filenameext/3 is used to compose and decompose a (fully qualified) filename around its extension, defined by a dot.
|
This function deletes file specified in FILENAME | ||
|
Get the list of subdirectories | ||
|
end_of_file |
|
Check for end-of-file |
|
file_str |
|
This function could be as a writing or reading a string from the file specified by File. |
|
Returns parameters of a File | ||
|
Returns or replace a file name's extension | ||
|
Is used to compose and decompose a fully qualified OS file name around its path and file name. | ||
|
Returns the filelist | ||
|
Open file for input. | ||
|
Returns the name of the opened input file. | ||
|
Close input file. | ||
|
Open file for output. | ||
|
Returns the name of the opened output file. | ||
|
Close output file. |