In <[email protected]> siva sankari R 
<[email protected]> 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
[email protected]    watch 'House', or a real serial killer to watch 'Dexter'.

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

Reply via email to