Remove usage of readlines()

Change-Id: I6c3ecd36a340d1ba682565bb9e6138d1f06cdabf
Merge "Remove usage of readlines()"