参数

    string filePath

    要读取的文件的路径

    string encoding

    encoding 的合法值

    返回值

    string|ArrayBuffer data

    错误

    错误码 错误信息 说明
    fail no such file or directory, open ${filePath} 指定的 filePath 所在目录不存在
    fail permission denied, open ${dirPath} 指定的 filePath 路径没有读权限