#include <xtd/xtd>
auto main() -> int {
string input_text;
int num_lines = 0;
do {
if (input_text.
size() > 0) {
num_lines++;
my_stream_writer.write_line(input_text);
}
}
while (input_text.
size() > 0);
if (num_lines > 0) {
} else {
}
my_stream_writer.close();
}
}
size_type size() const noexcept
Returns the number of char_t elements in the string, i.e. std::distance(begin(), end()).
Definition basic_string.h:834
static xtd::string read_line()
Reads the next line of characters from the standard input stream.
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
bool redirect_standard_input() const noexcept
Gets a value indicating whether the input for an application is read from the Process....
const xtd::string & file_name() const noexcept
Gets the application or document to start.
bool use_shell_execute() const noexcept
Gets a value indicating whether to use the operating system shell to start the process.
const xtd::diagnostics::process_start_info & start_info() const
Gets the properties to pass to the xtd::diagnostics::process::start() method of the xtd::diagnostics:...
std::ostream & standard_input()
Gets a stream used to write the input of the application.
bool start()
Starts (or reuses) the process resource that is specified by the xtd::diagnostics::process::start_inf...
process & wait_for_exit()
Instructs the xtd::diagnostics::process component to wait indefinitely for the associated process to ...
Provides access to local and remote processes and enables you to start and stop local system processe...
Definition process.h:49
Implements a xtd::io::text_writer for writing characters to a stream.
Definition stream_writer.h:28
#define block_scope_(...)
The specified expression is cleared automatically when the scope is ended.
Definition block_scope.h:25
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.h:10
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.h:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10