AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
*     R0 =     file handle to read from
          R1 !     buffer
          R2 =     Size of buffer
*     R2 =     Number of bytes read
Not re-entrant.

Reads a CR terminated line out of a file and places it into a block of memory.
If the line won't fit into the buffer the rest is discarded.
If no buffer is given an internal buffer is used and the length of the string is set to 254 characters.

Basic example
SYS "ddu_ReadLine",File,Blk,255 TO ,,Len

[sh-index] Back to list of manuals