seek operation in python
Joel Goldstick
joel.goldstick at gmail.com
Wed Apr 29 14:17:33 EDT 2015
On Wed, Apr 29, 2015 at 2:08 PM, siva sankari R <buddingrose11 at gmail.com> wrote:
> 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
What is in the file you are printing?
--
Joel Goldstick
http://joelgoldstick.com
More information about the Python-list
mailing list