Files
cybr108/lab-02/problem-05.py
T

7 lines
214 B
Python

# Write a Python program that opens a file and handles a PermissionError exception if there is a permission issue.
try:
open('filename2.txt')
except PermissionError:
print('Insufficient file permissions')