On Wed, 04 Jan 2006 00:55:08 +0200, Chameleon
<> wrote, quoted or indirectly quoted
someone who said :
>I try with ansi file, with UC2 file and UTF-8 file.
>Always throws EOF.
Someone just made this same mistake in a another post.
readUTF is NOT for reading UTF-16 or UTF-8 text files. It is for
reading binary format files containing counted strings with binary
lead counts.
you want a FileReader using explicit UTF-8 encoding.
see
http://mindprod.com/applets/fileio.html
for the sample code.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.