Garden 🌻

read_line()

Read a single line of text from stdin.

Returns Ok with the line (without trailing newline) on success, or Err with an error message on failure.

Example
match read_line() {
  Ok(line) => println("You entered: " + line)
  Err(e) => println("Error: " + e)
}
Source Code
public fun read_line(): Result<String, String> {
  __BUILT_IN_IMPLEMENTATION
}