#%% def File(file_path): with open(file_path, 'r', encoding='utf-8') as file: return file.read() # Example usage: # file_contents = load_file_as_string('path/to/your/file.txt') # print(file_contents)