ReadFrom (open)

Read a string from any input device

Syntax

// Core function, no LOADLIB necessary

STRING FUNCTION ReadFrom(INTEGER inputid, INTEGER maxnumbytes)

Parameters

INTEGER inputid

Input device id

INTEGER maxnumbytes

(Maximum) number of bytes to read. This function never reads more than 32768 (32kB) in one call

Return value

STRING

The data read

Description

This function reads from any input device, eg. a diskfile or a socket