From 3fdcf3261d81784d11a9ca772404f766a8b858d0 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Fri, 1 Dec 2023 01:08:36 -0600 Subject: [PATCH] better exmaple --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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.