Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to open not exist document? #18

Open
GermanAizek opened this issue Mar 1, 2024 · 1 comment
Open

How to open not exist document? #18

GermanAizek opened this issue Mar 1, 2024 · 1 comment

Comments

@GermanAizek
Copy link
Contributor

@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');
@totravel
Copy link
Owner

totravel commented Mar 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants