From 9e39f18230c0424d8b7ccf869193d0739b8a2bdb Mon Sep 17 00:00:00 2001 From: hydrogen-mvm Date: Mon, 11 Nov 2019 19:24:12 -0500 Subject: [PATCH] Fix OpenFile files.inc example (#1120) "rb" = binary file for *reading* (not writing, that would be "wb"). --- plugins/include/files.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/include/files.inc b/plugins/include/files.inc index bcc256c2..2da8d773 100644 --- a/plugins/include/files.inc +++ b/plugins/include/files.inc @@ -314,7 +314,7 @@ native bool ReadDirEntry(Handle dir, char[] buffer, int maxlength, FileType &typ * Mac, this has no distinction from binary mode. On Windows, it causes the '\n' * character (0xA) to be written as "\r\n" (0xD, 0xA). * - * Example: "rb" opens a binary file for writing; "at" opens a text file for + * Example: "rb" opens a binary file for reading; "at" opens a text file for * appending. * * @param file File to open.