U
Ulrich Eckhardt
c said:I've been re-familiarizing myself with C syntax using gcc for the first
time. For lack of a better idea, I've been choosing exercises from K&R2
at random.
Note that K&R C is not standard but predates the standard in many ways and
even contains obsolete/deprecated things. Consult ACCU's website for
reviews of books to be sure.
How do I funnel a file to stdin from the command line?
It depends on your system, but since you mention control-Z I guess it's DOS
or something similar so
type input.txt | programm.exe
should work. Maybe (can't try that now) the syntax used by Unix shells works
too:
programm.exe < input.txt
Uli