class TEXT_FILE_WRITE
Summary
Class invariant
Overview
Creation features
Exported features
  • path: STRING
    Not Void when connected to the corresponding file on the disk.
  • is_connected: BOOLEAN
    Is this file connected to some file of the operating system?
  • recycle
    Do whatever needs to be done to free resources or recycle other objects when recycling this one
  • dispose
    Action to be executed just before garbage collection reclaims an object.
To write a number:
Other features:
flushed_character_count: INTEGER_64
writable attribute
Note that '%N' is counted as one character even if two bytes are written in the file.
character_count: INTEGER_64
effective function
See also flushed_character_count Note that '%N' is counted as one character even if two bytes are written in the file.
connect_to (new_path: ABSTRACT_STRING)
effective procedure
Truncate file to zero length or create text file for writing.
connect_for_appending_to (new_path: ABSTRACT_STRING)
effective procedure
Open for writing.
disconnect
effective procedure
Try to disconnect the stream.
out_in_tagged_out_memory
effective procedure
Append terse printable representation of current object in tagged_out_memory.
filtered_put_character (c: CHARACTER)
effective procedure
filtered_flush
effective procedure
filtered_descriptor: INTEGER_32
effective function
Find the descriptor of the terminal stream...
filtered_has_descriptor: BOOLEAN
is True
constant attribute
True if the underlying terminal stream has a descriptor
filtered_stream_pointer: POINTER
effective function
Find the pointer of the terminal stream...
filtered_has_stream_pointer: BOOLEAN
is True
constant attribute
True if the underlying terminal stream has a pointer
writable attribute
buffer_position: INTEGER_32
writable attribute
capacity: INTEGER_32
writable attribute
output_stream: POINTER
writable attribute
make
effective procedure
The new created object is not connected.
write_buffer
effective procedure
text_file_write_open (path_pointer: POINTER): POINTER
text_file_write_append (path_pointer: POINTER): POINTER
io_fclose (stream: POINTER)
path: STRING
writable attribute
Not Void when connected to the corresponding file on the disk.
is_connected: BOOLEAN
effective function
Is this file connected to some file of the operating system?
set_path (new_path: ABSTRACT_STRING)
effective procedure
descriptor: INTEGER_32
effective function
Some OS-dependent descriptor.
has_descriptor: BOOLEAN
effective function
True if that stream can be associated to some OS-meaningful descriptor.
can_disconnect: BOOLEAN
deferred function
True if the stream can be safely disconnected (without data loss, etc.)
url: URL
frozen
effective function
The URL to this stream as resource
url_memory: URL
writable attribute
new_url: URL
deferred function
stream_pointer: POINTER
effective function
Some Back-end-dependent pointer (FILE* in C, InputStream or OutputStream in Java)
has_stream_pointer: BOOLEAN
effective function
True if that stream can be associated to some Back-end-meaningful stream pointer.
event_exception: EVENT_DESCRIPTOR
effective function
stream_exception: STREAM_EXCEPTION
writable attribute
recycle
effective procedure
Do whatever needs to be done to free resources or recycle other objects when recycling this one
dispose
effective procedure
Action to be executed just before garbage collection reclaims an object.
sequencer_descriptor (file: POINTER): INTEGER_32
can_put_character (c: CHARACTER): BOOLEAN
effective function
put_character (c: CHARACTER)
effective procedure
flush
effective procedure
Flushes the pipe.
detach
effective procedure
Shake off the filter.
writable attribute
The filter that uses this stream as backend
event_can_write: EVENT_DESCRIPTOR
effective function
writable attribute
as_output_stream: OUTPUT_STREAM
effective function
is_filtered: BOOLEAN
deferred function
put_natively_stored_string (s: NATIVELY_STORED_STRING)
effective procedure
put_abstract_string (s: ABSTRACT_STRING)
effective procedure
put_string (s: ABSTRACT_STRING)
effective procedure
Output s to current output device.
put_unicode_string (unicode_string: UNICODE_STRING)
effective procedure
Output the UTF-8 encoding of the unicode_string.
put_line (s: ABSTRACT_STRING)
effective procedure
Output the string followed by a '%N'.
put_integer (i: INTEGER_64)
frozen
effective procedure
Output i to current output device.
put_integer_format (i: INTEGER_64, s: INTEGER_32)
frozen
effective procedure
Output i to current output device using at most s character.
put_natural_8 (n: NATURAL_8)
frozen
effective procedure
Output n to current output device.
put_natural_8_format (n: NATURAL_8, s: INTEGER_32)
frozen
effective procedure
Output n to current output device using at most s character.
put_natural_16 (n: NATURAL_16)
frozen
effective procedure
Output n to current output device.
put_natural_16_format (n: NATURAL_16, s: INTEGER_32)
frozen
effective procedure
Output n to current output device using at most s character.
put_natural_32 (n: NATURAL_32)
frozen
effective procedure
Output n to current output device.
put_natural_32_format (n: NATURAL_32, s: INTEGER_32)
frozen
effective procedure
Output n to current output device using at most s character.
put_natural_64 (n: NATURAL_64)
frozen
effective procedure
Output n to current output device.
put_natural_64_format (n: NATURAL_64, s: INTEGER_32)
frozen
effective procedure
Output n to current output device using at most s character.
put_real (r: REAL_64)
effective procedure
Output r to current output device.
put_real_format (r: REAL_64, f: INTEGER_32)
effective procedure
Output r with only f digit for the fractional part.
put_real_scientific (r: REAL_64, f: INTEGER_32)
effective procedure
Output r using the scientific notation with only f digit for the fractional part.
put_number (number: NUMBER)
effective procedure
Output the number.
put_boolean (b: BOOLEAN)
effective procedure
Output b to current output device according to the Eiffel format.
put_pointer (p: POINTER)
effective procedure
Output a viewable version of p.
put_new_line
effective procedure
Output a newline character.
put_spaces (nb: INTEGER_32)
effective procedure
Output nb spaces character.
append_file (file_name: STRING)
effective procedure
tmp_file_read: TEXT_FILE_READ
once function
tmp_string: STRING
once function
io_putc (byte: CHARACTER, stream: POINTER)
io_fwrite (buf: NATIVE_ARRAY[CHARACTER], size: INTEGER_32, stream: POINTER): INTEGER_32
io_flush (stream: POINTER)
set_filter (a_filter: FILTER)
effective procedure
Used by the filter itself to get attached