LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   redirection in C (http://www.linuxquestions.org/questions/programming-9/redirection-in-c-216175/)

pantera 08-11-2004 08:03 AM

redirection in C
 
how to redirect the output of a print statement in C to a file
ex
printf("hi there") to file1
is there any other way??

worldmagic 08-11-2004 08:10 AM

School assignments should read fprintf and fopen.

infamous41md 08-11-2004 01:06 PM

and check out dup2() as well.


All times are GMT -5. The time now is 05:28 AM.