/// Name: Daniel Nguyen /// Period: 6 /// Project Name: SimpleInput /// File Name: SimpleInput.java /// Date: 3/11/2015 import java.io.File; import java.util.Scanner; public class SimpleInput { 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); } }