API Reference > ZipUtils Namespace > Functions > ZipUtils::createFile Function
ZipUtils::createFile Function
Syntax
C++
int createFile(const OdString & path, const char * data, unsigned int size);

ZipUtils.h

Parameters 
Description 
const OdString & path 
[in] A string containing path to file.  
const char * data 
[in] A pointer to buffer containing file data.  
unsigned int size 
[in] Length of the buffer containing file data.  

Returns 0 if file was successfully created; otherwise, the method returns an appropriate error.

Creates file.

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