// Open the file
inFile = new File("c:\\animals.dat");
// Create a file stream, wrapping the file
fileReader = new FileReader(inFile);
// Create a second wrapper,
bufReader = new BufferedReader(fileReader);
// Read in the first line...
String s;
// Read in 7 lines (how can this be improved?)
for (int i=0; i<7; i++) {
s = bufReader.readLine();
// Add the new string to the text area
j.append(s);
j.append("\n"); // Append a new line character to improve formatting
}