def get_file_contents_as_string(filename: str) -> str:
    """
    Read the entire contents of a file into a string and return it with newlines unchanged
    :param filename: name of the file to read
    :return: file contents as string
    """

    with open(filename, 'r', newline='') as f:
        return f.read()