API Reference > Classes > OdIfcFile Class > OdIfcFile Methods > writeFile Method > OdIfcFile::writeFile Method (OdString&, bool)
OdIfcFile::writeFile Method (OdString&, bool)
Syntax
C++
virtual OdResult writeFile(const OdString& fileName, bool saveLogFile = false);
Parameters 
Description 
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).  
filename 
[in] A string that contains the full path to the output file to write data.  

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-2021. Open Design Alliance. All rights reserved.