// Helene Martin, CSE 142 // Demonstrates usage of the file object and file Scanners import java.io.*; import java.util.*; public class FileDemo { public static void main(String[] args) throws FileNotFoundException { File f = new File("people.txt"); System.out.println(f.length()); Scanner input = new Scanner(f); String name = input.next(); System.out.println("First name in file: " + name); String name2 = input.next(); System.out.println("Second name in file: " + name2); } }