| ReadLineFrom |
| |
Read a line from any input device |
| |
| Syntax |
 |
PUBLIC STRING FUNCTION ReadLineFrom (INTEGER inputid,INTEGER maxnumbytes,BOOLEAN striplf) |
| |
| Description |
 |
This function reads from any input device, eg. a diskfile or a socket. This function reads the specified number of bytes or until the end of line is encountered. |
| |
| Parameters |
 |
| inputid |
 |
Input device id |
 |
| maxnumbytes |
 |
(Maximum) number of bytes to read - the function will read until this limit or EOL is reached. This function never reads more than 32768 (32kB) in one call |
 |
| striplf |
 |
Strip the carriage returns or linefeed characters from the input |
 |
|
| |
| Returns |
 |
The data read |
| |