freopen()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Teh Charleh

    freopen()

    After I have redirected output to a file (james.txt)...

    freopen("james. txt", "w", stdout);

    after the prog has written what needs to be written to the file how do I direct
    output back to the monitor?

    Thanks :)
  • Enrico `Trippo' Porreca

    #2
    Re: freopen()

    Teh Charleh wrote:[color=blue]
    > After I have redirected output to a file (james.txt)...
    >
    > freopen("james. txt", "w", stdout);
    >
    > after the prog has written what needs to be written to the file how do I direct
    > output back to the monitor?[/color]

    This is a FAQ.



    --
    Enrico `Trippo' Porreca

    Comment

    Working...