I want to reopen the stdin and stdout (and perhaps stderr while I\'m at it) filehandles, so that future calls to printf()
stdin
stdout
stderr
printf()
This is the most readily available, handy and useful way to do
freopen("dir","r",stdin);