Calling readln() after readf
Ali Çehreli
acehreli at yahoo.com
Mon Jun 20 16:08:33 UTC 2022
On 6/20/22 07:00, Gary Chike wrote:
> Would it be appropriate to forego `readf`
> and read input as a string using `readln` ,benefiting from the `strip`
> function, then convert to their appropriate datatype
Makes sense. The following are related as well:
https://dlang.org/library/std/conv/parse.html
https://dlang.org/library/std/format/read/formatted_read.html
Ali
More information about the Digitalmars-d-learn
mailing list