Ok i think it is the way i am telling the function what the path is. im guessing this only doesnt work because im on a windows machine (on python 2.5)
ive tried changing the string in all obvious ways
Ok what am i missing here? ive been coding for years and this has stumped me. Google doesnt even have an answer. do people just not open files out of there directories in windows?
Code:
f = open('files\test.txt', 'r') for line in f: print line
Code:
'files\\test.txt' r'files\test.txt' 'files/test.txt' 'c:\....\files\test.py' 'c:\\...\files\test.py' (for the c:\ bug i tried c:\\)
Comment