Hi, simply use file_obj = open ("D:\My documents\File.ods",'rb') for opening file in binary access mode, which is required for binary files on MS Windows. Honza
jean-jeanot wrote: > I can access to a file with the command: > file_obj = open ( " D:\My documents\Textfile.txt",'r') > > When I now try to read a file with the following command: > > file_obj = open ("D:\My documents\File.ods",'r') it doesn't function. > The extension ods is coming from OpenOffice.org Calc. > > Why ? > > jean-jeanot -- http://mail.python.org/mailman/listinfo/python-list