Reading from text file using StringBuffer