AttributeError: ,_io.TextIOWrapper' object has no attribute 'next'
Blender 2.6x comes with its own Python in Version 3.3.x, and in Py3k it's __next__().

You can do simpler, however:

for line in file:
    print(line)