read_stdin [function]
read_stdin( bool all = false )
reads from the standard input
- if
all
is set to 'true', all standard input is read up to EOF (useful for piped input) - if
all
is set to 'false' or not set at all, input is read up to (and excluding) the next newline character
print "Name: "; name = read_stdin(); // waits for user input process( read_stdin(true) ); // loads all piped input