tinivini:
Hi . I want read data from txt file .
I have a file with name "data.txt" and value inside file is "a"
I wrote this code based on the reference.
The "data.txt" located same folder mql5 file and the handle value is equal to 1.
But the str value is not printed(The program does not enter the while loop).
Please advise.
put the file in the files folder

Documentation on MQL5: File Functions
- www.mql5.com
File Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

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
Hi . I want read data from txt file .
I have a file with name "data.txt" and value inside file is "a"
I wrote this code based on the reference.
The "data.txt" located same folder mql5 file and the handle value is equal to 1.
But the str value is not printed(The program does not enter the while loop).
Please advise.