package cs362practice;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

/** Objects that can cat a given file's contents to
 * standard output.
 * @author Gary T. Leavens
 */
public class FileCatter {
    
    /** The name of the file to cat.
     * We store just the name so that we don't get errors
     * unless and until the file is catted, and so no resources
     * are consumed until then. */
    private String name;
      
    /**
     * Initialize this FileCatter with the given name
     * @param name the file name
     */
    //@ requires name != null;
    public FileCatter(String name) {


    }
    
    /**
     * Open the file with the given name,
     * read each line of the file and write it to System.out,
     * and then close the file.  The file should be closed in
     * all cases.   You can use the expression
     *    new BufferedReader(new FileReader(inFile))
     * to create a BufferedReader on the file inFile.
     * We expect that you know how to create a File object
     * from a String so that it is open on the file named by the String.
     * Be sure to close the file when you are done.
     * @throws IOException if any I/O problems arise
     */
    public void catToStdout() throws IOException {

















    }
}
