October 01, 2003
Heres silly question. I'am trying to input a string using scanf. "%s" in D does not seem to work for char[]. What format string should I be using in D. Or does D have a better method for console input?

Thanks,

James


October 01, 2003
<james@jnngill.com> wrote in message news:blepb7$1hi4$1@digitaldaemon.com...
> Heres silly question. I'am trying to input a string using scanf. "%s" in D
does
> not seem to work for char[]. What format string should I be using in D. Or
does
> D have a better method for console input?
>
> Thanks,
>
> James
>

There's stream.stdin.readLine() or stream.stdin.readString(length)