Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / May 2005



Tip: Looking for answers? Try searching our database.

Console app "file" selector

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bint - 31 May 2005 00:23 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.