This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
java:exceptions_try_catch_block [2019/04/20 03:42] gthanos [Άλλο παράδειγμα - Ανοίγοντας ένα αρχείο για διάβασμα] |
java:exceptions_try_catch_block [2019/04/20 03:55] (current) gthanos [Άλλο παράδειγμα - Ανοίγοντας ένα αρχείο για διάβασμα] |
||
|---|---|---|---|
| Line 83: | Line 83: | ||
| while ((inputLine = in.readLine()) != null) { | while ((inputLine = in.readLine()) != null) { | ||
| strDocument.append(inputLine+"\n"); | strDocument.append(inputLine+"\n"); | ||
| + | //throw new IOException(); | ||
| } | } | ||
| System.out.println("Closing File!"); | System.out.println("Closing File!"); | ||