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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?