| find_file | Top Previous Next | 
| Scripts > Class elements and c++ instructions > File handling > find_file 
 Prototype 
 bool find_file(const str& xsDirectory, const str& xsName, str& xsFoundPath); 
 Description 
 This function returns true, if a file exists in the directory xsDirectory with the name xsName. xsFoundPath then contains the complete path for this file. If the file isn't found, the function returns false. 
 Example: 
 str sPath; 
 if(find_file(SourceRoot(), "log.txt", sPath)) { ... 
 
 see also: unit_dependence example 
 | 
| This page belongs to the TextTransformer Documentation | Home Content German |