If you are using MS-DOS (and Windows Console and Unix),
the easiest way of redirecting your all printf and fprintf is to
add this in the beginning of your program:
freopen("wherestdoutgoes.txt", stdout);
freopen("wherestderrgoes.txt", stderr);
This way, you can keep a record of all the text generated by your program
using printf(...) and fprintf(stderr, ...) including system errors.
 
You may chose to only redirect stderr only since stdout is for
normal screen output.


"Antwan Williams" <antwan799@attbi.com> wrote in message news:b1c24i$19g1$1@digitaldaemon.com...
> Does anyone know how to scroll up and down in a MSDOS command prompt window?
> If I print a list or my program has a lot of bugs in it and runs through the
> whole screen, what can I do to see the all the errors that are not in the
> immediate window?
>
>