Read a file with open command
Tim Williams
tim at tdw.net
Fri Aug 11 12:55:52 EDT 2006
On 11 Aug 2006 09:39:23 -0700, jean-jeanot <jean.moser at neuf.fr> wrote:
> Anyway many thanks.Here is the program:
>
> >>> file_obj= open ("D:/Mes documents/ADB Anna.ods",'r')
> >>> s = file_obj
> >>> s.readlines()
Please remember not to top-post :)
Try this
>>> s = open ("D:/Mes documents/ADB Anna.ods",'r')
>>> s.readlines()
>>> s.close()
or
>>> s = open ("D:/Mes documents/ADB Anna.ods",'r').readlines()
HTH :)
More information about the Python-list
mailing list