Package com.javaholics
Class FileReader
java.lang.Object
com.javaholics.FileReader
A class that reads data from a file.
- Version:
- 1.0
- Author:
- Lindsay Kislingbury
-
Constructor Summary
ConstructorDescriptionFileReader
(String filename) Constructs a new FileReader with the specified filename. -
Method Summary
-
Constructor Details
-
FileReader
Constructs a new FileReader with the specified filename.- Parameters:
filename
- the name of the file to read from
-
-
Method Details
-
readData
Reads data from the file specified in the constructor. The file should contain integers, each on a new line.- Returns:
- an array of integers read from the file
-