Case sensitive file names

Thomas Philips tkpmep at hotmail.com
Mon Feb 23 01:12:58 CET 2004


Here's my example
>>> file =open("c:\python23\programs\test.txt")

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in -toplevel-
    file =open("c:\python23\programs\test.txt")
IOError: [Errno 2] No such file or directory: 'c:\\python23\\programs\test.txt'

>>> file =open("c:\Python23\Programs\test.txt")

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in -toplevel-
    file =open("c:\Python23\Programs\test.txt")
IOError: [Errno 2] No such file or directory: 'c:\\Python23\\Programs\test.txt'

>>> file =open("c:\Python23\Programs\Test.txt")
>>> print file.read()
1
2
3



More information about the Python-list mailing list