Prog 123: Simple File Inpt
//Name: Ilana Levy
//Period: 5
//Program Name: Simple File Input
//File Name: simpleFile.java
//Date Finished: 2/18/2016
import java.util.Scanner;
import java.io.File;
public class simpleFile
{
public static void main( String[] args )throws Exception
{
Scanner fileIn = new Scanner(new File( "name.txt" ));
String name1 = fileIn.next();
String name2 = fileIn.next();
fileIn.close();
System.out.println( "Using my psychic powers (aided by reading data from this file), \nI have determined that your name is " + name1 + " " + name2);
}
}