So I modified my initial post and tried to run in sandbox. Tried to just read the file, but got FileNotFound.
Created the file, wrote to it, closed it, then opened and read - bingo.
The only problem is - where on earth is the file? Searched my C: drive - nothing. It's also not persistent - if I run the program then remove the writer part it does not read the previously written file.
In short - I have no clue where the file went, how to find it, or - more relevant to your problem - how to preload one that students can read.
public class MyProgram
* Reads a file and prints back out
public static void main(String args) throws Exception
String filename = "c:\\users\\adoolittle\\xyzzy.txt";
BufferedWriter bWriter = new BufferedWriter(new FileWriter( new File(filename)));
File fReader = new File(filename);
BufferedReader buf = new BufferedReader(new FileReader( new File(filename)));
while( true )
in = buf.readLine();
if( in == null )
System.out.println("'" + in + "'");