std.stream for stdin?
Jarrett Billingsley
kb3ctd2 at yahoo.com
Fri Jul 11 09:17:01 PDT 2008
"dsimcha" <dsimcha at yahoo.com> wrote in message
news:g57v7m$ss1$1 at digitalmars.com...
> I've been trying to write some small Unix-style utilities that read data
> from
> either a file or stdin, process it and write the results to stdout. Is
> there
> a way to create an object of the Stream class from Phobos or one of its
> subclasses that treats stdin as an input stream? I'd like to avoid using
> the
> C standard file/stream I/O if possible, since it doesn't handle exceptions
> automatically and is just in general butt ugly compared to Phobos's
> implementation.
import std.cstream, and use the din object :)
More information about the Digitalmars-d-learn
mailing list