import FormatIO.*; public class Messy { public static void main(String[] args){ Console con = new Console(); FileIn fin = new FileIn("..\\demo02\\Test.java"); String s = fin.readLine(); while (!fin.eof()){ // (1) con.println(s); // (2a) s = fin.readLine(); // (2b) } con.println(s); // (3) fin.close(); // (4) } } // // (1) read until we hit end of file // (2) display input, then read a line // (3) display last line read in // (4) close the file // /* Modify to read FormatIO/Console.java Move up and down directories in DOS window to show \ and . and .. note confusing / and \ !!!!! */