src/swipl-devel/packages/xpce/man/refmanual/md/file.md

class file {#class-file}

A file object is a wrapper around a Unix file. Files are used internally for the various disk read and write operations supported by PCE.

File objects can be used to query the status of a Unix file, read/write from/to it, rename it, remove it, etc.

A file is represented by its <-name, which may hold the Unix constructs ~, ~loginname and $var. A file can be searched in a search-path using ->find. It may be translated to an absolute filename using ->absolute_path, which writes the variable <-path after successful translation.

Class file defines the class->has_features listed below. These features are defined for the various MS-Windows based versions of XPCE. If XPCE is running on any of the MS-Windows based platforms, case_sensitive yields @off. case_preserving is @on on -NT and '95 and @off on win32s. 8plus3names is @on on win32s and @off on the other systems. All Unix versions are case_sensitive, case_preserving have 8plus3names set to @off.

case_sensitive      bool
case_preserving     bool
8plus3names         bool

See also class directory.

@see class directory @see class date

Instance variables {#class-file-instvars}

Send methods {#class-file-send}

Get methods {#class-file-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.