An
exercise for using the FileReader
class to input data from a data file
Samples
running the program:
· Using JDK
·
Using Java NetBeans
1. Error message (if the working directory is not set up right)
2. To set the working directory to where the program/data file is:
3. Finally, the program runs and displays the content of the program file.