minidocx
minidocx copied to clipboard
How to open not exist document?
@totravel,
Example:
bool Document::Open(const std::string& path, bool createIfNotExist = false)
docx::Document doc;
doc->Open(path, true);
or C file functions be like
doc->Open(path, 'r');
doc->Open(path, 'w');
doc->Open(path, 'w+');
doc->Open(path, 'a');
doc->Open(path, 'rb');
Since this feature is not .docx specific, I prefer to discuss it in the next generation of minidocx.