// This line reads one line in the file.
while((br.readLine()) != -1) {
// This line reads the next line in the file.
// If this readLine call hits the end_of_file
// (-1 returned) it will throw an exception.
openAction.notes.append(br.readLine()+"\n");
}
Solution? Save each line that you read and isolate the
reading to the while loop condition statement, like so:
String line;
while((line = br.readLine()) != -1) {
openAction.notes.append(line+"\n");
}