+
Point of view
All features
class REGULAR_FILE
Summary
Direct parents
Inherit list: FILE
Class invariant
Overview
Creation features
{ANY}
Features
{ANY}
Text stream access
{ANY}
{}
{ANY}
{DIRECTORY}
{}
writable attribute
{ANY}
The short name of the file.
writable attribute
{ANY}
The file path.
is_directory: BOOLEAN
is False
constant attribute
{ANY}
is_regular: BOOLEAN
is True
constant attribute
{ANY}
as_directory: DIRECTORY
effective function
{ANY}
require
  • is_directory
ensure
  • Result = Current
as_regular: REGULAR_FILE
effective function
{ANY}
require
  • is_regular
ensure
  • Result = Current
exists: BOOLEAN
effective function
{ANY}
effective function
{ANY}
Returns a stream connected for reading the file.
If the read stream is not connected anymore, connects it again. Always returns the same object.
require ensure
is_reading: BOOLEAN
effective function
{ANY}
effective function
{ANY}
Returns a stream connected for writing to the file.
If the write stream is not connected anymore, connects it again. Always returns the same object.
require ensure
append: OUTPUT_STREAM
effective function
{ANY}
Returns a stream connected for appending to the file.
If the write stream is already connected, use write instead. Always returns the same object.
require ensure
is_writing: BOOLEAN
effective function
{ANY}
make (a_file_path: ABSTRACT_STRING)
effective procedure
{}
read_memory: TEXT_FILE_READ
writable attribute
{}
write_memory: TEXT_FILE_WRITE
writable attribute
{}
parent: DIRECTORY
frozen
effective function
{ANY}
set_parent (a_parent: DIRECTORY)
effective procedure
ensure
parent_memory: DIRECTORY
writable attribute
{}
basic_directory: BASIC_DIRECTORY
writable attribute
{}
Provide low level access to directories.