reading in text files
Steven Schveighoffer
schveiguy at yahoo.com
Wed Aug 24 07:34:45 PDT 2011
On Wed, 24 Aug 2011 10:25:18 -0400, Johannes Pfau <spam at example.com> wrote:
> On Linux/unix you can for example pipe the output from one command to
> another:
>
> cat hamlet.txt | ./readingHamlet
>
> this way readingHamlet's standard input is connected to cat's standard
> output.
I believe in all OSes (Windows included) ./readingHamlet < hamlet.txt
works.
Could be wrong though.
-Steve
More information about the Digitalmars-d-learn
mailing list