def read(fname, mode = "r"):
    """Read content from a given file.

    Args:
        fname (str, Path): The path to the file.
        mode (str): File mode while opening. Defaults to "r".

    Returns:
        [type]: The content within the file.

    Example

        >>> bpy.read("path/to/file")
        'Hello, World!'
    """
    with open(fname, mode = mode or "r") as f:
        data = f.read()
    return data