Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Console app "file" selector

 
   Mac (Home) -> Programmer Code RSS
Next:  Does mwcc work on Tiger?  
Author Message
Bint

External


Since: May 30, 2005
Posts: 13



(Msg. 1) Posted: Mon May 30, 2005 11:23 pm
Post subject: Console app "file" selector
Archived from groups: comp>sys>mac>programmer>codewarrior (more info?)

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
Back to top
Login to vote
MW Ron

External


Since: Jun 06, 2005
Posts: 31



(Msg. 2) Posted: Tue May 31, 2005 12:22 pm
Post subject: Re: Console app "file" selector [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <BEC10A2A.10A38%juliosity@igf.com>, Bint <juliosity.DeleteThis@igf.com>
wrote:

>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?

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

--
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.DeleteThis@metrowerks.com - http://www.metrowerks.com
Back to top
Login to vote
Display posts from previous:   
Related Topics:
iSYM file corruption (reprise) - Hi, BTW, before we start I know this is a bug with the x86 compiler and Metrowerks don't support it anymore, but I thought I'd post this just for information really. You never know, it might help someone.... Back in February I started a thread about..

Mac OS X: How can I get the file access date/time - Hi In my application I like to get the access date and access time of an existing file. How can I do that? I am using CW 8. Thanks Hans

Bug in alloc.c? - I'm getting an infinite loop in alloc.c, which is located in MSL/MSL_C/MSL_Common/Src. This is with CW 9.5. The function is allocate_from_var_pools. There is a do/while loop that searches for a block with the required size to allocate a block of..

Multiply defined symbol: .bss - Hi, when trying to build a dll for Windows using CW9 on MacOS, I get an error message like: Link Error : Multiply defined symbol: .bss in files file1.cpp, file2.cpp The same message with the same filenames is repeated several times, but....

Where next? - Hi folks, All of my recent Mac coding has been Carbon C++, mostly using PowerPlant as a framework. As most of my clients are moving to X and CW's future is, shall we say, uncertain I'm wondering where to look for my future coding setup. I've dabbled....
       Mac (Home) -> Programmer Code All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact