Download MetaTrader 5

How can i check if a file exists on a subfolder?

To add comments, please log in or register
mrluck1
989
mrluck1  

HI, there is a function called fileisexist, but if i need it to search on a subfolder of \\files, for example \\files\\foldera, how can i do that?

bool  FileIsExist(
   const string  file_name,       // File name
   int           common_flag=0    // Search area  - It's possible to choose subfolder for search area, on \\files, and if yes, how to do that?
   );

i really need to check if a file exists, if this function can't choose the subfolder, what can i do to return true if there is " name " file on a subfolder of file, thanks for help

nicholishen
1538
nicholishen  
mrluck1:

HI, there is a function called fileisexist, but if i need it to search on a subfolder of \\files, for example \\files\\foldera, how can i do that?

i really need to check if a file exists, if this function can't choose the subfolder, what can i do to return true if there is " name " file on a subfolder of file, thanks for help


file_name = path+file_name;
mrluck1
989
mrluck1  

great, i tested it and worked, subfolder\\name, documentation wasn't clear, thanks a lot

To add comments, please log in or register