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
I have generated a txt file containing just "Hello World".
When opening the file by using this code I don´t see the expected text "Hello World" but only "squares" inside the Journal Window of the tester. Any idea?
string ReadPatternFile()
{
string PatternString;
int filehandle=FileOpen("patternfile.txt",FILE_READ|FILE_TXT);
if(filehandle!=INVALID_HANDLE)
{
PatternString = FileReadString(filehandle);
} else Print("Operation FileOpen failed, error ",GetLastError());
FileClose(filehandle);
Print (PatternString); //Why do I see only squares?
return PatternString;
}