mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00

Compared to readf, these functions provide a less error-prone way to read a single line of formatted input. Fixes #10370
6 lines
298 B
Text
6 lines
298 B
Text
Added `readfln` and `File.readfln` to `std.stdio`
|
|
|
|
These functions read a single line of input and parse it using a format string.
|
|
Unlike `readf`, they will not accidentally read multiple lines if the user
|
|
forgets to include a line terminator in the format string—a common mistake for
|
|
beginners.
|