wrote:
>
> The only way I know how to do I/O with a file is with the
> <println> and <readLine> methods. But now I'm getting ready to do a
> project that will essentially have me writing binary to a file and
> then reading binary from that file. The values written to and read
> from will be <byte> values. Does anyone out there know how to just
> plain write an individual <byte> to a file and read an individual
> <byte> from one? Thanks in advance for any information you can give
> me.
Do a little reading in the java.io package. InputStream and OutputStream are the basic
classes for accessing byte values in a stream. They provide read() and write() for
bytes. For files, you'd use FileInputStream and FileOutputStream. For random access, see
RandomAccessFile.
--
Lee Fesperman, FFE Software, Inc. (
http://www.firstsql.com)
================================================== ============
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (
http://www.firstsql.com)