FileOpen no me da un handel para abrir el fichero csv

 

int archivo;
string csvclosehigh;

 
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
 {
 
      archivo=FileOpen("CSVPRUEBA",FILE_CSV);
      csvclosehigh=FileReadString(archivo);
      Alert("Datos ",csvclosehigh);
      Alert(GetLastError());
     return;
  }
 

I want to show the text of the csv file located in MQL4 / Files / CSVPRUEBA but it gives error 5008, it does not give an adequate handel to open the file. Where is the problem?. Thank you.

 

Please only post in English on this forum.

I have used the site's auto translate tool to translate it this time, next time please do it yourself.

When you post an error code please look it up and tells us as we do not necessarily know what error code 5008 means.

This case "

Wrong file handle (handle index is out of handle table)


But you could have done that and saved everyone that reads your post having to look it up.

 

Sorry for my mistakes, I will do so next time!

THanks a lot

Reason: