minidocx icon indicating copy to clipboard operation
minidocx copied to clipboard

How to open not exist document?

Open GermanAizek opened this issue 11 months ago • 1 comments

@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');

GermanAizek avatar Mar 01 '24 15:03 GermanAizek

Since this feature is not .docx specific, I prefer to discuss it in the next generation of minidocx.

totravel avatar Mar 03 '24 16:03 totravel