Integer file write and read.
Why the output of FileReadInteger is zero? How to fix it?
- 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!