Reads a log file and handles common file-related errors.
log.txt exists and is encoded in cp949.
File encoding caused an issue when reading.
-
FileNotFoundError: Check if the file path is correct. -
PermissionError: Make sure you have access to the file.