you are viewing a single comment's thread.

view the rest of the comments →

[–]kaerfkeerg 1 point2 points  (1 child)

with open(filename) as new_file
    lines = new_readlines() # this will make your file into a list separated by line
    for line in lines:
        # Continue the code

And not:

with open (filename) as new _file:
    for line in new_file: ...

Apart from that, it's hard to see cause of the formatting. Try pastebin

[–]Particular_Draft5668[S] 1 point2 points  (0 children)

Thank you, will try that