Published
- 1 min read
python open file exception
The solution for this is noted below
python open file exception
Solution
try:
with open("path\to\file", "r"):
...
except FileNotFoundError:
print("file does not exist :(")
Try other methods by searching on the site. That is if this doesn’t work