On Wed, 09 Jul 2003 15:36:14 GMT, "<insert my name here>"
<> wrote or quoted :
>What's the easiest way to load a series of strings from a file where
>each string is simply a null-terminated string of bytes (non-unicode)
>and there are no special (ie: CR/LF) characters involved?
read them as raw bytes one at a time from a BufferedInputStream in a
loop. Then convert byte arrays you create to strings with an
encoding.
See
http://mindprod.com/fileio.html for sample code to read the bytes
and
http://mindprod.com/converter.html for how to convert the byte
array to a String.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See
http://mindprod.com/jgloss/jgloss.html for The Java Glossary.