readf with strings

Dainius (GreatEmerald) pastas4 at gmail.com
Wed Jun 22 10:59:46 PDT 2011


I see. Using %s does indeed work with ints, and chomp(readln()) works
with strings. It's rather counter-intuitive, though.
I wonder why there isn't a simpler way to do this, something like
writeln() - you could input the variables as parameters and it would
automatically read them...


More information about the Digitalmars-d-learn mailing list