Move to readlines() from readline() in assertFileWrittenFromList

Not using for loop yet - intermediate version.