I want to open a .txt file for reading but python always gives error, either use
f = open('ficheiro.txt', "r")
or
f =open('C:\...(diretório)...\ficheiro.txt', "r")
I have already created files from python to know where they are stored and put there the file I want, and it still does not work. It only gives when I copy the content I want to the file I create with python, but it gives a lot of work.
Python always raises this error:
IOError: [Errno 2] No such file or directory: 'ficheiro.txt'
What can I do to solve the problem?