Open main menu
CDOT Wiki
β
Search
Changes
← Older edit
Newer edit →
OPS435 Python Lab 5
5 bytes added
,
00:43, 19 February 2019
→
PART 1 - Handling Errors
f.write('hello world\n')
f.close()
except (FileNotFoundError, PermissionError,
IsADirectory
IsADirectoryError
):
print('failed to open file')
</source>
Rchan
1,760
edits