FileIsExist() |
Your code if (!StringFind(text,"Symbol:EURUSD;OpenTradeDate:2022.01.21 11:27:32;TradeType:1;MagicNumber:0")) { checkText=true; } else checkText=false;
Simplified checkText= !StringFind(text,"Symbol:EURUSD;OpenTradeDate:2022.01.21 11:27:32;TradeType:1;MagicNumber:0");
- Dejan Krapez:
I don't want to save duplicate file in txt file.
Before save I need to check if already exists.What is your question? If the file exists, or if the line exists?
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem -
text+=FileReadString(handle,intSize);
What is intSize and why are you only reading part of each line?
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 don't want to save duplicate file in txt file.
If I have EURUSD;TYPEORDER=0
Before save I need to check if already exists.
This is my code: