Python File Not Found || Exception Handling || Python
In this we are going to see a basic program to check file not found exception in Python Programming Language.



try:
    f = open("test.txt", "r")
    print(f.read())
except FileNotFoundError as e:
    print(e)
    open("text.txt", "w")

# Coded By Dhiraj Shelke


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post