LoadText(): Added comment

This commit is contained in:
Ray 2020-02-27 13:19:13 +01:00
parent 89ecad1e29
commit 245ba2a152

View file

@ -2996,6 +2996,9 @@ char *LoadText(const char *fileName)
if (textFile != NULL) 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); fseek(textFile, 0, SEEK_END);
int size = ftell(textFile); int size = ftell(textFile);
fseek(textFile, 0, SEEK_SET); fseek(textFile, 0, SEEK_SET);