def load_doc(filename) -> str:
    """
    Opens a file and reads it in as a string.

    Parameters:
    filename (str): Path to file

    Returns:
    str: contents of file
    """
    with open(filename, 'r') as f:
        doc = f.read()
    return doc