I just want my program to read a line in my file, do something with text in line, then move onto the next line, until all lines in the file are finished.
Here's what I have so far:
with open(str(filepath), r) as fp:
for line in fp:
rdline = fp.readline()
doSomething(rdline)
this isn't working however. How should I approach this? I don't want to convert all lines into a dictionary or list, as I will be working with files with a large amount of lines.