I'm coding something and I need to open a .txt file on the code. I have both the code and the text file in the same folder, yet I still get this error: FileNotFoundError: [Errno 2] No such file or directory: 'dis_rules.txt'. The code I wrote was directly taken from a different thread on this page, and obviouly the file name written in the code is identical. Here's the folder with both files on it.
Here's the code I've used too:
fp = open(r"dis_rules.txt", 'r')
print(fp.read())
What could be wrong on this? Thank you for your help!