| Did you know ... | Search Documentation: |
| Instance variables |
<-bom
is not @off,
the file is checked for a UNICODE BOM signature. If found, file<-bom
is set to @on
and the source_sink<-encoding is set
accordingly.
If the file is opened for writing and file<-bom
= @on and the
encoding is a UNICODE encoding, a BOM marker is written to the file.
Note that this default behaviour returns consistent results on the sequence below. If a BOM is detected on reading, one will be added on writing the file and the encoding of the file will not be changed.
send(View, load, File), ... send(View, save).
->open
for details.
->open->initialise
. When the name is changed and the file already exists, the Unix file is
renamed accordingly. file->name
cannot move files across file-systems.
<-base_name <-directory_name ->name\r from the input. The detect mode sets the mode of
the file to dos or posix. In write mode posix does not perform
translation, while dos emits \n as \r\n.
BUG: detection is only provided by text_buffer->insert_file.
->absolute_path
or file->find.
The Unix file opened is the name of this variable when not @default
and file<-name
after expansion of _~_ and
$var constructs if this variable holds @default
->close.->open.write or
append. See file->open.