Reading by character and by line from stdin
bellinom
bellinom at nsuok.edu
Thu Aug 25 10:49:02 PDT 2011
Hello,
I'm in the process of learning D, and I have some questions about reading from
stdin. I've checked out the documentation but it's really not helping too
much. I'd like to know how to read from stdin one character at a time, read
with whitespace as a delimiter, and read line by line. Essentially just the
equivalents of cin.get(), cin >>, and cin.getline(). At the momoent I'm using
the D compiler on www.ideone.com, which I assume uses Phobos.
Thanks in advance for any help.
Malcolm
More information about the Digitalmars-d-learn
mailing list