xieite ::file_pipe ::open ()
Defined in fragment xieite :file_pipe
(header-only:
<xieite/io/file_pipe.hpp>
)
Constructs a
xieite ::file_pipe
.Declaration
#0void open (std ::string_view cmd ,std ::string_view mode )noexcept ;
#1
Only defined if the target platform is Windows.#if XIEITE_PLTF_TYPE_WINDOWS void open (std ::wstring_view cmd ,std ::wstring_view mode )noexcept ;#endif
Example
Possible output:import xieite ;int main () {xieite ::file_pipe pipe ;pipe .open ("echo Hello, world!" ,"r" );xieite ::dump (xieite ::read (pipe .get ())); }
Hello, world!