Re: log?

[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Ricky Castles on April 14, 2001 at 15:36:28:

In Reply to: Re: log? posted by John Kugelman on April 14, 2001 at 14:46:21:

I don't want to beat a dead horse, I know this has been discussed a lot on this board. Apparently we are supposed to code everything just like all output is going to the screen using cout, but somehow it will be redirected to a log file. I am not clear as to how that redirection to the file is accomplished. It appears to me that it is a command line argument when the program is invoked, but I am not exactly clear. Is there something we need to do in our code to override cout to print to that file specified. Pardon my ignorance.
: The program as specified takes one argument, the input file. The redirection is done by the O.S., so you'll never see the rest of the command line. Just write the program and output everything to cout; where the output ends up will be taken care of by the user.

Follow Ups:

Post a Followup




Optional Link URL:
Link Title:
Optional Image URL:

[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]