Write int to text file using Writer
<pre><code>Writer wr = new FileWriter("123.txt");
wr.write(123);
wr.close();
</code></pre>

<p>Output file contains:<br>
 <code>{</code></p>

<p>Where is the problem? How to write <code>int</code> to text file using <code>Writer</code>?</p>
