need help

 

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 ?

 
Another time please use the SRC button when you post code. I edited it for you.
 

Is this for mql4 or mql5 ?

mql4 question - MQL4 forum
  • www.mql5.com
mql4 question - MQL4 forum
Reason: