Sublime Forum

No Output Shown by Sublime

#1

Hi

This is code
text_file = open(‘fileca.txt’, ‘r’)
print(text_file.read())
text_file.close()

and this is output
[Finished in 0.3s]

Why sublime is not reading the file. I have tried to give full path as well like:
text_file = open(‘C:\Program Files\Scripts\code examples\fileca.txt’, ‘r’)

I think the problem is in sublime not code.

0 Likes