Input from console

Anders F Björklund afb at
Sun Feb 25 14:46:45 PST 2007

Orgoton wrote:

> This may be an awkward question, but how do we get input from the
> console? I mean, like scanf()? It worked for numbers, but for strings
> I'm haveing trouble.

We use "readf", only problem being that it is missing at the moment...

You'll have to use something else, like the streams - or even scanf.
(std.cstream for the character streams and std.c.stdio for the C I/O)


More information about the Digitalmars-d-learn mailing list