Class FileReader

java.lang.Object
com.javaholics.FileReader

public class FileReader extends Object
A class that reads data from a file.
Version:
1.0
Author:
Lindsay Kislingbury
  • Constructor Details

    • FileReader

      public FileReader(String filename)
      Constructs a new FileReader with the specified filename.
      Parameters:
      filename - the name of the file to read from
  • Method Details

    • readData

      public Integer[] 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