BufferedReader br = null;
try {
br = new
BufferedReader(new FileReader("C:/test.txt");
...
} catch (FileNotFoundException e) {
System.out.println("Súbor nebol
nájdený");
} catch (IOException e) {
System.out.println("Chyba
pri čítaní!");
} finally {
if(br !=
null) {
try {
br.close();
} catch
(IOException e) {
}
}
}