API Reference > OdDAI Namespace > Classes > Repository Class > Repository Methods > Repository::writeFile Method
Repository::writeFile Method
Syntax
C++
virtual OdResult writeFile(const OdString& filename, bool saveLogFile = false);
Parameters 
Description 
const OdString& filename 
[in] A string that contains the full path to the output file to write data.  
bool saveLogFile = false 
[in] A flag that determines whether the log file should be also written (if equal to true) or not (if equal to false).  

Returns eOk if the data was successfully written; otherwise, the method returns an appropriate error.

Writes data from the repository object to a physical file.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.