File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -1771,6 +1771,23 @@ <h2 id="system-apis">System APIs</h2>
17711771</ div >
17721772</ div >
17731773< div class ="docblock ">
1774+ < a id ="output_file ">
1775+ < pre > < code class ="language-cpp decl "> < div > template <typename... T>
1776+ </ div > < div > auto output_file(cstring_view path, T... params) -⁠> ostream;</ div > </ code > </ pre >
1777+ </ a >
1778+ < div class ="docblock-desc ">
1779+ < p > Opens a file for writing. Supported parameters passed in < code > params</ code > :</ p >
1780+ < p > < ul >
1781+ < li > < p > < code > <integer> </ code > : Flags passed to < a href ="https://pubs.opengroup.org/onlinepubs/007904875/functions/open.html "> open (< code > < a href ="file::WRONLY "> file::WRONLY | < a href ="file::CREATE "> file::CREATE | < a href ="file::TRUNC "> file::TRUNC</ code > by default)</ p >
1782+ </ li > < li > < p > < code > buffer_size=<integer> </ code > : Output buffer size</ p >
1783+ </ li > </ ul >
1784+ </ p >
1785+ < p > < b > Example</ b > : < pre > < code class ="language-cpp "> auto out = fmt::output_file("guide.txt");
1786+ out.print("Don't {}", "Panic");
1787+ </ code > </ pre > </ p >
1788+ </ div >
1789+ </ div >
1790+ < div class ="docblock ">
17741791< a id ="windows_error ">
17751792< pre > < code class ="language-cpp decl "> < div > template <typename... T>
17761793</ div > < div > auto windows_error(int error_code, string_view message, const T&... args) -⁠> std::system_error;</ div > </ code > </ pre >
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments