Download MetaTrader 5

need help

To add comments, please log in or register
Have you installed MetaTrader 5? Find out more about it!
Shalva Shimshilashvili
2574
Shalva Shimshilashvili 2013.10.07 15:59 

hello , i have a problem in the code .

for (int Path_Counter = 0 ; ; Path_Counter ++)
    {
     FileSeek(File_Id,End_Line_Char+1,SEEK_SET);
     string File_Str=FileReadString(File_Id,1000000);
     int End_Of_Line=StringFind(File_Str,"\n",0);
     End_Line_Char+=End_Of_Line+1;
     ArrayResize(Client_Paths,Path_Counter+1);
     Client_Paths[Path_Counter]=StringSubstr(File_Str,0,End_Of_Line);
     if(Client_Paths[Path_Counter]=="")
      {
       break;
      }

   }

when i print it like that :
Alert(Client_Paths[Client_Path_Counter]+"\\"+File_Name+" "+Files_Counter+".txt");

is give me only Client_Paths[Client_Path_Counter] string.

but if i print it like that :

Client_Paths[Client_Path_Counter]="C:\\Program Files\\InstaTrader\\experts\\files";

Alert(Client_Paths[Client_Path_Counter]+"\\"+File_Name+" "+Files_Counter+".txt");

is give me the correct string .

so how i can to reslove this problem ?

Alain Verleyen
Moderator
30721
Alain Verleyen 2013.10.07 16:58  
Another time please use the SRC button when you post code. I edited it for you.
Alain Verleyen
Moderator
30721
Alain Verleyen 2013.10.07 20:03  

Is this for mql4 or mql5 ?

mql4 question - MQL4 forum
  • www.mql5.com
mql4 question - MQL4 forum
To add comments, please log in or register