fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 278: Read one line from the standard input
Idiom # 278: Read one line from the standard input
See
programming-idioms.org
:
Code
lm : mutate is line := lm ! ()-> (io.stdin.reader lm) ! ()-> (io.buffered lm).read_line
What are effects?
Runnable Example
ex278 is lm : mutate is line := lm ! ()-> (io.stdin.reader lm) ! ()-> (io.buffered lm).read_line match line s String => say "you entered '$s'" io.end_of_file => say "EOF"
What are effects?
last changed: 2025-07-10
next: Idiom # 279: Read list of strings from the standard input