seek operation in python

2015-04-29 Thread siva sankari R
file=open("input","r")
line=file.seek(7)
print line

The above code is supposed to print a line but it prints "none". I don't know 
where the mistake is. Help.!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: seek operation in python

2015-04-29 Thread siva sankari R
There is a file named "input.cpp"(c++ file) that contains some 80 lines of 
code. 
-- 
https://mail.python.org/mailman/listinfo/python-list