title: System.out to a file in java
body: <p>I'm running an application from inside another one for testing purposes. I want to redirect the output for the tested app to a file, so I can have a log after each test.</p>
  
  <p>Is there a way to redirect the output of an app to a file from the command line in java?</p>