opening a file to read under windows

dave hatton dave.hatton at mail.com
Sat Oct 9 19:50:15 EDT 1999


Help!

This is driving me mad!

How should I open a text file for reading under windows? (98 in this case)

Every thing I try results in an error message which shows the filename
correctly but with "\\" between each element not "\"

I'm using "fd = open(filename, 'r')" where filename="c:\dir\file.txt"

Thanks

Daveh








More information about the Python-list mailing list