- 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 Documentation on MQL5: File Functions / FileTell](/i/community/logo_mql5_small.png)
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!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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