task9
def read_file(filename):
    try:
        with open(filename, 'r', encoding='utf-8') as f:
            return f.read()
    except FileNotFoundError:
        return f"404. File {filename} not found"

print(read_file('test.txt'))
