On Sat, 01 Oct 2005 04:33:15 GMT, "Bruce Lee"
<> wrote or quoted :
>You're better off using a FileInputStream and FileOutputStream for this.
>The error is because you're saying the int x is a FileReader object which it
>isn't - use the read() method instead. ie. int x = fileinputstream.read();
>
for character i/o, a Reader/Writer is correct. Using an
InputStream/OutputStream is deprecated for that purpose because of the
problems with encoding.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.