diff --git a/README.md b/README.md index c476724..8b9ff95 100644 --- a/README.md +++ b/README.md @@ -48,10 +48,13 @@ All files will be closed upon GSC restart (map_restart or fast_restart or missio { PrintConsole("test.txt failed to be opened for reading!"); } + else + { + // do stuff with the file - // do stuff + FS_FClose(f); // make sure to close it + } - FS_FClose(f); // make sure to close it ``` * ` FS_ReadLine()` Reads a line from the file pointed by the filehandle, removes the newline char. Returns `undefined` when nothing is left to read. Will not read more than 8192 characters at once. Filehandle must be opened for reading.