Changed Reader in to Buffered Reader, changed tex