SyntaxFix
Write A Post
Hire A Developer
Questions
\t is a tab character. Use a raw string instead:
\t
test_file=open(r'c:\Python27\test.txt','r')
or double the slashes:
test_file=open('c:\\Python27\\test.txt','r')
or use forward slashes instead:
test_file=open('c:/Python27/test.txt','r')