This mql4 code read the txt file string but as lower case not as upper case as it is saved in the file. Any idea where is the problem and how to get it to
read the text as is?
Thanks
// string file contents// USD s wint filehandle=FileOpen(filename, FILE_READ | FILE_ANSI | FILE_COMMON, 0);
ushort sep = StringGetCharacter(" ",0); // The code of the separator characterint str_size;
string str;
while(!FileIsEnding(filehandle)){
str_size= FileReadInteger(filehandle,INT_VALUE);
str = FileReadString(filehandle,str_size);
Print(str);
}
// prints usd s w
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi
This mql4 code read the txt file string but as lower case not as upper case as it is saved in the file. Any idea where is the problem and how to get it to read the text as is?
Thanks