reading file using buffered reader instead of one go