python 2.7
A string to file parameter oddity that I can't find explained or mentioned anywhere on the net.
help plz, thks
f=r"C:\temp\test.txt" print f filein=open(f) a=filein.read() filein.close() print ait prints
Output:C:\temp\test.txt
but then it returns ...Error:No such file or directory 'C:\\temp\\test.txt'
why is it adding extra \ ? A string to file parameter oddity that I can't find explained or mentioned anywhere on the net.
help plz, thks