Assignemnt #127

Code

//colin hinton
//5th period
//5/25/2016
//open.java

import java.io.File;
import java.util.Scanner;
class open
{
    public static void main (String [] args) throws Exception
    {
        Scanner kb = new Scanner(System.in);
        System.out.println("Which file you want: ");
        String imput = kb.next();
        
        Scanner fileIn = new Scanner(new File((String) imput));
        
        
            while (fileIn.hasNext())
            {
                String print = fileIn.nextLine();
                System.out.println(print);
            }
            fileIn.close();
     }
}
//Stop Reading My Programs, Did I Add More?

    

Picture of the output

Assignment 1