I want to read a txt file test_case_tranfromation.txt I just created in my directory but whenever I try to open it, I'm getting the error.
I tried:
f = open("/Users/stanislavjirak/Documents/KBC_GROUP/rasa-cz/rasa_cz/rasa_extension/test/test_case_transformation.txt", "r")
print(f.readline())
with open("test_case_transformation.txt") as f:
print(f.read())
Both yielded:
FileNotFoundError: [Errno 2] No such file or directory: 'test_case_transformation.txt'
I can physically see the file there and even copied$pasted the name.
What am I doing wrong?