I'm having an issue with "FileNotFoundError: [Errno 2] No such file or directory: 'Pronunciation_Data.txt'
I keep resetting my working directory to the correct location but it does not seem to want to stay (using Spyder/Anaconda). I have also tried the following:
file = open(r'C:\path\to\Pronunciation_Data.txt\Users\stephaniecheetham\Desktop\Thesis')
import os
os.chdir(r'C:\Users\stephaniecheetham\Desktop\Thesis')
file = open('Pronunciation_Data.txt')
file = open("Pronunciation_Data.txt",'r')
file = open("<Users/stephaniecheetham/Desktop/Thesis>\Pronunciation_Data.txt",'r')
file = open("C:/stephaniecheetham/Desktop/Thesis/Pronunciation_Data.txt",'r')
No luck with any of them. Just the same error. I had a recent issue with a module as well and fixed it using the import os
command.
Any suggestion?