- You know the format, no need for the line is ending loop. That is in case you have a variable width file and need to check before the next read. After you read the last column, you are on the next line and the function returns false, you loop forever, never checking if file is ending.
- You are appending reading all lines into str.
A BIG THANK YOU!!!!!!!!!!!!! Have a nice day!
![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
Hi everyone!
I want to read this text file :
Each column is separated by a tab (hexa 0x9).
Each line ends by a CRLF (hexa 0xD 0xA)
For some reason, my program loops forever:
Any idea why?? THANKS!