id: brl.textstream title: BRL.TextStream
The Text Stream module allows you to load and save text in a number of formats: LATIN1, UTF8 and UTF16.
The LATIN1 format uses a single byte to represent each character, and is therefore only capable of manipulating 256 distinct character values.
The UTF8 and UTF16 formats are capable of manipulating up to 1114112 character values, but will generally use greater storage space. In addition, many text processing applications are unable to handle UTF8 and UTF16 files.
Function LoadText$( url:Object )
Load text from a stream
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 |