How to save the output into a file
<p>In a program, I currently have</p>

<pre><code>process.serialize(System.out);
</code></pre>

<p>This generally output the object "process" to the screen in a XML format.</p>

<p>But I want to redirect this XML format into a saved file, like test.XML. How to do that in java? Thanks.</p>
