try/catch block for buffered reader