API Reference > Extension Classes > ExServices Classes > OdBaseFileBuf Class > OdBaseFileBuf Methods > OdBaseFileBuf::open Method
OdBaseFileBuf::open Method
Syntax
C++
virtual void open(const OdString& filename, Oda::FileShareMode shareMode = Oda::kShareDenyNo, Oda::FileAccessMode accessMode = Oda::FileAccessMode(Oda::kFileRead | Oda::kFileWrite), Oda::FileCreationDisposition creationDisposition = Oda::kOpenExisting);
Parameters 
Description 
const OdString& filename 
[in] Filename.  
Oda::FileShareMode shareMode = Oda::kShareDenyNo 
[in] Share mode.  
Oda::FileAccessMode accessMode = Oda::FileAccessMode(Oda::kFileRead | Oda::kFileWrite) 
[in] Access mode.  
Oda::FileCreationDisposition creationDisposition = Oda::kOpenExisting 
[in] Creation disposition. 

Opens the specified file with this StreamBuf object.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.