- Importing live data from MT4 to excel
- Access to Optimization Inputs
- Help: How can I keep writing in a file?
persy5:
Why the output of FileReadInteger is zero? How to fix it?
Because you read at the end of the file. Use FileTell and FileSeek.
Why the output of FileReadInteger is zero? How to fix it?
Documentation on MQL5: File Functions / FileTell
- www.mql5.com
File Functions / FileTell - Documentation on MQL5
I add this line
FileSeek(file_handle,0,SEEK_SET);
and it works. Thanks a lot!
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