API Reference > Classes > OdIfcFile Class > OdIfcFile Methods > writeFile Method > OdIfcFile::writeFile Method (OdStreamBufPtr, bool)
OdIfcFile::writeFile Method (OdStreamBufPtr, bool)
Syntax
C++
virtual OdResult writeFile(OdStreamBufPtr pStream, bool saveLogFile = false);
Parameters 
Description 
OdStreamBufPtr pStream 
[in] A smart pointer to the output stream buffer object to wtite 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 specified stream buffer to a physical file.

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