| change_extension | Top Previous Next | 
| Scripts > Class elements and c++ instructions > File handling > change_extension 
 Prototype 
 str change_extension( const str& xsPath, const str& xsNewExtension ); 
 Description 
 This function returns the path, which results from changing the extension in the path xsPath to xsNewExtension. xsNewExtension should include a dot to achieve reasonable results. 
 Example 1: 
 out << change_extension("EditDefault.ds", ".tb"); 
 Output:: 
 EditDefault.tb 
 Example 2: 
 out << change_extension("EditDefault.ds", "tb"); 
 Output:: 
 EditDefaulttb // presumably not wanted 
 | 
| This page belongs to the TextTransformer Documentation | Home Content German |