def _file_content_to_str(file_path):
    """
    Converts a file content to a string.
    Args:
        file_path (str): the path of the file.
    Return:
        str: file content as string
    """

    with open(file_path) as file:
        return file.read()