Now using buffered-reader for reading file line by line.