python read next()
<p>next() in python does not work. what is an alternative to reading next line in python. here is a sample</p>

<pre><code>filne = "D:/testtube/testdkanimfilternode.txt"
f = open(filne, 'r+')

while 1:
    lines = f.readlines()
    if not lines:
        break
    for line in lines:
        print line
        if (line[:5] == "anim "):
            print 'next() '
            ne = f.next()
            print ' ne ',ne,'\n'
            break

f.close()
</code></pre>

<p>Running this on a file does not show 'ne '</p>

<p>Brgds,</p>

<p>kNish                                   </p>
