///Name: Ryan McAteer ///Period: 5 ///Project Name: SimpleInput ///File Name: Assignment123.java ///Date: 5/19/2016 import java.io.File; import java.util.Scanner; public class Assignment123 { public static void main(String[] args) throws Exception { String name; System.out.print("I guess that your name is: "); Scanner fileIn = new Scanner(new File("name.txt")); name = fileIn.nextLine(); fileIn.close(); System.out.println(name); } }