def foo(file_path): with open(file_path, "r") as file: contents = file.read()