> 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
[quoted text clipped - 4 lines]
> <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.

Signature
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)
kvnsmnsn@hotmail.com - 17 Jun 2005 23:23 GMT
Lee Fesperman posted:
=> 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.
Thanks! <FileInputStream> and <FileOutputStream> did exactly
what I needed.
---Kevin Simonson
"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_