Skip to content

Commit 7fe20e3

Browse files
committed
started a thought previously, this is finishing it
1 parent e0f8f74 commit 7fe20e3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎koans/src/intermediate/AboutFileIO.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public void betterFileWritingAndReading() throws IOException {
6262
assertEquals(br.readLine(), __); // second line
6363
assertEquals(br.readLine(), __); // what now?
6464
} finally {
65-
closeStream(br); // anytime you open access to a
65+
// anytime you open access to a file, you should close it or you may
66+
// lock it from other processes (ie frustrate people)
67+
closeStream(br);
6668
}
6769
}
6870

0 commit comments

Comments
 (0)