phobos/changelog/readfln.dd
Paul Backus 4a91ed7033 stdio: add readfln and File.readfln
Compared to readf, these functions provide a less error-prone way to
read a single line of formatted input.

Fixes #10370
2025-03-03 03:47:52 +01:00

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.