SyntaxFix
Write A Post
Hire A Developer
Questions
\ is an escape character in Python. \t gets interpreted as a tab. If you need \ character in a string, you have to use \\.
\
\t
\\
Your code should be: test_file=open('c:\\Python27\\test.txt','r')
test_file=open('c:\\Python27\\test.txt','r')