Read

Streams
Aptilis 2

Read(Stream, LengthToRead)

This stream command allows you to read data (in the form of strings) from a stream.
See readLine to read lines.

See Open for a primer on Aptilis streams and examples.

Return Value:
A string of as many characters as you specified, unless there wasn't enough data, in which case you string will be shorter than the requested length.
An empty value returned to you may indicate an error, that _errno$ will give you more details about.

See also: Open, Close, ReadLine, Write, SetPosition, GetPosition
and:
LoadFile and SaveFile.