File:ReadLine
Example
Open a file in read only mode, reads a line, tells where the current file pointer is at and then closes the file handle.
Output: //
// Default mapcycle file for Garry's Mod.
45
Returns the contents of the file from the current position up until the end of the current line.
Line Feed
characters \n
and will completely ignore Carriage Return
characters \r
.
It will also stop at a \0
or NULL
character, but will add a new line instead.
This function will not return more than 8192 characters. The return value will include the \n
character.
Open a file in read only mode, reads a line, tells where the current file pointer is at and then closes the file handle.