Assignemnt #127 and 128th program

Code

    ///Name: Derrick Andreasen
///Period: 7
///Program name: 128th Program
///File name: Hund27prog.java
///Date Finished:5/17/2016

import java.io.File;
import java.util.Scanner;

public class Hund27prog
{
	public static void main( String[] args ) throws Exception
	{
        System.out.println( "" );
        
        String file;
        Scanner k = new Scanner(System.in);
        
        System.out.print( "Open which file: " );
        file = k.next();
        
        Scanner fileReader = new Scanner(new File(file));
        
        while(fileReader.hasNext())
        {
            String line = fileReader.nextLine();
            System.out.println(line);
        }
            fileReader.close();
        }
    }
    

Picture of the output

Assignment 128