previous |
start |
next
To Read Binary Data From a Disk File
- Create a FileInputStream
- Use its read method to read a single byte
-returns the next byte as an int or the integer -1 at end of
input
- Test for -1
- If not -1, cast to byte
- Close the file when done
previous |
start |
next