korean_dave a écrit :
a = open("Thefile.txt","r")

while ?????:
  result = a.readln()

I assume you meant "a.readline()" ? Anyway...

what do i put in ???? if i want to keep reading line by line until i
reach the end of the file?

a = open("path/to/file.ext")
for line in a:
   do_something_with(line)
a.close()

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to