foundry_common::io::stdin

Function read

Source
pub fn read(read_line: bool) -> Result<String>
Expand description

Reads bytes from stdin into a String.

If read_line is true, stop at the first newline (the 0xA byte).