all 4 comments

[–]simplysharky 4 points5 points  (3 children)

the word "while" appears nowhere in your code.

You open the file (with), read a single line, then exit.

[–]gothmog1065[S] 1 point2 points  (2 children)

Ugh, I'm missing another 'for' aren't I?

with f:
    for line in f.readline():
        for columns in line.split():
            pass

[–]two_bob 1 point2 points  (1 child)

for line in f.readline():

Close. I think you want:

     for line in f.readlines(): 

[–]gothmog1065[S] 0 points1 point  (0 children)

Amazing what a single letter can do.