FGets (Kernel)¶
-
FGets
(buffer max [handle])¶ Reads a string from the file pointed to by handle and stores it in buffer. If the string’s length is greater than max, only max bytes are read.
Important
This kernel is SCI0 only. For SCI1.1, see
FileIO()
.Parameters: - buffer (string) – A buffer where the string is written.
- max (number) – The maximum number of bytes to read.
- handle (number) – A file handle.
Returns: The number of bytes read.