fix padding with reading all lines from file.