| Did you know ... | Search Documentation: |
| Get methods |
<-name
without the possible directory specification:
?- new(F, file('/staff/jan/src/xpce/src/unx-file.c')),
get(F, base_name, Base).
F = @634787
Base = 'unx-file.c'
<-directory_name -nameDiagnostics: Fails with message on I/O error. Fails silently on reaching end-of-file.
->initialise.<-base_name -name->seek.
Diagnostics: Gives a warning if the file is not opened.
->seekDefaults: The default amount to read is the entire file.
Diagnostics: Standard file diagnostics.
Bugs: Unlike Unix read(), this function cannot
deal with files holding 0 (EOS) characters as strings cannot represent
such characters.
<-read_line->strip.
If the last line is not closed with a newline, a string without
trailing newline is returned.
Diagnostics: Fails with error message on file errors. Fails silently when the end of the file is reached.
<-read<-time<-string)
or compared.
See also directory->modified.
Defaults: By default returns the time of last modification.
<-size