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