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

 

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

 
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;
 

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