MQL5 File Functions not working

 

Guys maybe you can help me with this code that in MQL4  is working as expect but in MQL5 I receive some chinnese characters that I dont understand:


void OnStart()
  {
//---
      int handle=FileOpen("test.csv",FILE_CSV|FILE_READ);
      Alert(FileReadString(handle));
      FileClose(handle);
  }
//+------------------------------------------------------------------+
 

Try

void OnStart()
  {
//---
      int handle=FileOpen("test.csv",FILE_CSV|FILE_READ|FILE_ANSI);
      Alert(FileReadString(handle));
      FileClose(handle);
  }
//+------------------------------------------------------------------+
 
Enrique Dangeroux:

Try

It worked!

Greetings

Luis

Reason: