Hello,
I feel like I've asked this before, but I did a search on the archives and
came up short.
I've got a console std c app that I'm compiling with CW. When it runs, it
pops up a little menu where I can type in some command line arguments (for
-argc, -argv).
There is also, below this, two radio controls, one for input, one for
output, I assume. With these you can select "Console" or "File".
Clicking on "File" for the output causes the programs output to dump to a
file that I specify. Good, that's what I want.
Clicking on "File" for the input lets me choose a file. My question is:
What am I choosing here? How do I access the file that I choose with this
radio button?
Thanks!
Bint
MW Ron - 31 May 2005 17:22 GMT
>Hello,
> I feel like I've asked this before, but I did a search on the archives and
[quoted text clipped - 13 lines]
>What am I choosing here? How do I access the file that I choose with this
>radio button?
you are using redirection to input from or output to a file (or both)
that replaces stdin or stdout.
So it reads from the file instead of stdin and prints to a file instead
of to the console.
Ron

Signature
Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
-- http://www.metrowerks.com/community --
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com