API Reference > Classes > OdIfcFile Class > OdIfcFile Methods > OdIfcFile::writeFile Method
OdIfcFile::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).  

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

Writes data from the file object to a physical file.

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