title: How can I redirect console output to file?
body: <p>I'm new to c.
  Is there any simple way to redirect all the console's output (printfs etc.) to a file using some general command line \ linkage parameter (without having to modify any of the original code)?</p>
  
  <p>If so what is the procedure?</p>