SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the following code snippet. readlines() reads in the whole file at once and splits it by line.
line = obj.readlines()