Function ftkit::read_line

source ·
pub fn read_line() -> String
Expand description

Reads a single line from the standard input.

Panics

This function panics if an error occurs whilst reading the standard input of the program.

Examples

let line = ftkit::read_line();
println!("You just wrote: {line}");