Assignemnt #122 and Simple File Input

Code

      ///name: Mark Katz
    ///period: 6
    ///Program name: Simple File Input
    ///file name: SimpleFileInput.java
    ///date finished: 5/28/16
    
    import java.io.File;
    import java.util.Scanner;
    
    public class SimpleFileInput {
        
        public static void main(String []args) throws Exception {
            
            String name1, name2;
            
            Scanner fileIn = new Scanner(new File("name.txt"));
            
            name1 = fileIn.next();
            name2 = fileIn.next();
            
            System.out.println("Your name is " + name1 + " " + name2);
        }
    }
    Assignment 98