Java IO: Reading a File
To read a file from disk:
BufferedReader in = new BufferedReader(new FileReader("foo.in"));
while ((strLine = in.readLine()) != null) {
// Print the content on the console
System.out.println (strLine);
}