In perl you can open a file and call the filehandle STDERR.
This redirects STDERR to a file.
I assume the same concept can be applied to C.
Sometimes with small programs I get lazy and open a filehandle called STDOUT,
that was I don't have to specify to the print command that I want to print to
a file.
This can get confusing with really big project so I tend to limit that method.
Good Luck!
[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
> Hello, I'm a beginning C/programmer and i have a (rather basic i guess)
> question. The output of stderr is standard the screen. Can I redirect this
> at for example a file ?
>
> PS: Would you guys would be insulted (or bored) if I ask such basic
> questions a few times (too many). Like I said, I'm a beginner :-)
>
> De Messemaeker Johan
> HEMMIS n.v.
> Koning LeopoldIII-laan 2, 8500 Kortrijk
> Tel.: 32 (0)56/37.26.37
> Fax: 32 (0)56/37.23.24
> Current Project : VMM Aalst
--
----------------------------------------------------------
Work in progress, please be gentle...
----------------------------------------------------------
Brent Williams
[EMAIL PROTECTED]
PGP Key -- http://www.palenaka.com/pgp/palenaka.asc