From 245ba2a152c078e1154fb74b2ba224029f2c0a93 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 27 Feb 2020 13:19:13 +0100 Subject: [PATCH] LoadText(): Added comment --- src/rlgl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rlgl.h b/src/rlgl.h index 03aaf625c..1b4ef00cf 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -2996,6 +2996,9 @@ char *LoadText(const char *fileName) if (textFile != NULL) { + // WARNING: When reading a file as 'text' file, + // text mode causes carriage return-linefeed translation... + // ...but using fseek() should return correct byte-offset fseek(textFile, 0, SEEK_END); int size = ftell(textFile); fseek(textFile, 0, SEEK_SET);