Read a file with open command

jean-jeanot jean.moser at neuf.fr
Fri Aug 11 05:24:49 EDT 2006


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




More information about the Python-list mailing list