Function LoadText$( url:Object ) |
Returns | A string containing the text. |
Description | Load text from a stream. |
Information | LoadText loads LATIN1, UTF8 or UTF16 text from url.
The first bytes read from the stream control the format of the text:
$fe $ff | text is big endian UTF16 |
$ff $fe | text is little endian UTF16 |
$ef $bb $bf | text is UTF8 |
If the first bytes don't match any of the above values, the stream
is assumed to contain LATIN1 text. |
Function SaveText( str$,url:Object ) |
Description | Save text to a stream. |
Information | SaveText saves the characters in str to url.
If str contains any characters with a character code greater than 255,
then str is saved in UTF16 format. Otherwise, str is saved in LATIN1 format. |