Human: Give me a Python code to load a text file. Assistant: 
Here is a Python code to load a text file

import os

def load_text_file(file_name):
    """
    >>> file_name = "test.txt"
    >>> load_text_file(file_name)
    'This is a test.'
    """
    with open(file_name, "r") as f:
        return f.read()

# Enter the file name
file_name ="yellow submarine"

# Calling the function
file_content = load_text_file(file_name)

# Print the file content

#Remember to inspect code for bugs.