In <8b2bd328-08a6-4211-85c4-8d117d1aa...@googlegroups.com> siva sankari R 
<buddingros...@gmail.com> writes:

> 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.!

The seek() function doesn't return any data; it just relocates the file
pointer.  You still have to do a read operation to get data from the
new location.

-- 
John Gordon         Imagine what it must be like for a real medical doctor to
gor...@panix.com    watch 'House', or a real serial killer to watch 'Dexter'.

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

Reply via email to