/// <summary> /// 把bytes写入到文件path中。如果文件存在则覆盖,不存在则创建。 /// </summary> /// <param name="path">路径</param> /// <param name="bytes">字节数组,要写入的二进制数据</param> public void writeBytes(string path, byte[] bytes) { var p = this.path(path); PFiles.WriteBytes(p, bytes); }