I’m trying to read a text file via win python 3, the strange thing is that I am not getting any error nor any output.
f = open ('C:\\Users\\test\\Desktop\\test.txt','r')
data = f.read()
print data
f.close()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
printis a function in py3Though, it should have give you invalid syntax error.