FileReadString reading the Upper case as a Lower case

To add comments, please log in or register
Essam Daoud
1129
Essam Daoud  

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

// string file contents
// USD s w

int filehandle=FileOpen(filename, FILE_READ | FILE_ANSI | FILE_COMMON, 0);

    ushort sep = StringGetCharacter(" ",0);                  // The code of the separator character
    int str_size;
    string str;
    while(!FileIsEnding(filehandle)){
        str_size= FileReadInteger(filehandle,INT_VALUE);
        str     = FileReadString(filehandle,str_size);
        Print(str);
   }

// prints usd s w
William Roeder
20208
William Roeder  
Unlikely — attach the file.
To add comments, please log in or register