FileReadString can't read more than 8192 bytes (MQL5)
int file_handle=FileOpen(InpFileName,FILE_READ|FILE_BIN|FILE_ANSI|FILE_TXT);
- A file can be binary or it can be text. It can't be both.
- FileReadString only works with binary files.
int file_handle=FileOpen(InpFileName,FILE_READ|FILE_BIN|FILE_ANSI|FILE_TXT);
You agree to website policy and terms of use
I am using the following function in mql5. (which is basically a copy-paste from the documentation https://docs.mql5.com/files/filereadstring).
Why can't I read more than 8192 bytes from any file? The file read doesn't fail -- it just get's truncated. (No, there is no "\r\n" at location 8192.)
Perhaps @Alain Verleyen or @William Roeder have run into this issue?