TextInputStream
Class: TextInputStream

Method PrototypeDescription
Property EOF As Boolean (read only)True of stream is at End of File, otherwise False.
Property LastErrorCode As Uint64 (read only)Return the last error code, otherwise 0.
Property PositionB As Uint64 (read only)The position of the file pointer (in bytes)
Property ReadError As Boolean (read only)True if an error has occurred while reading the file, otherwise False.

Sub Close()Closes the input stream and releases the file handle.
Method Read(count As Integer) As StringReads count bytes from the input stream and returns them as a String.
Method ReadAll() As StringReads the entire contents of the file and returns them as a String.
Method ReadLine() As StringReads 1 line from the input stream and returns it as a String.


The TextInputStream class is used to read text files. To create a TextInputStream object, create a FolderItem object and call its OpenAsTextFile method.

To write text files use the TextOutputStream class. To read and write binary files use the BinaryStream class.

TexInputStream implements the Readable class interface.

The TextEncoding class is not implemented in Yuma. For methods that take encodings as parameters in REALBasic, drop those parameters in Yuma. Similarly the TextInputStream.Encoding property doesn't exist in Yuma.

The "Handle" features are not implemented in Yuma. For methods that take handles as parameters in REALBasic, drop those parameters in Yuma. Similarly the TextInputStream.Handle property doesn't exist in Yuma.