Skip to content

Commit

Permalink
started a thought previously, this is finishing it
Browse files Browse the repository at this point in the history
  • Loading branch information
matyb committed Apr 11, 2016
1 parent e0f8f74 commit 7fe20e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion koans/src/intermediate/AboutFileIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public void betterFileWritingAndReading() throws IOException {
assertEquals(br.readLine(), __); // second line
assertEquals(br.readLine(), __); // what now?
} finally {
closeStream(br); // anytime you open access to a
// anytime you open access to a file, you should close it or you may
// lock it from other processes (ie frustrate people)
closeStream(br);
}
}

Expand Down

0 comments on commit 7fe20e3

Please sign in to comment.