/// <summary> /// 读取文件path的所有内容并返回一个字节数组。如果文件不存在,则抛出FileNotFoundException。 /// </summary> /// <param name="path">路径</param> /// <returns></returns> public byte[] readBytes(string path) { var p = this.path(path); return(PFiles.ReadBytes(p)); }
/// <summary> /// 读取文件path的所有内容并返回一个字节数组。如果文件不存在,则抛出FileNotFoundException。 /// </summary> /// <param name="path">路径</param> /// <returns></returns> public byte[] readBytes(string path) { var p = this.path(path); return(PFiles.ReadBytes(p)); }