import java.io.*; // test to read one line from a file public class filetest1 { public static void main(String[] args) throws IOException { System.out.println("File input test started"); FileReader freader = new FileReader("input.txt"); BufferedReader inputFile = new BufferedReader(freader); String line1 = inputFile.readLine(); System.out.println("You just read " + line1); inputFile.close(); } }