C# 字节流输出文件
作者:互联网
#region 字节流输出文件 /// <summary> /// 字节流输出文件 /// </summary> /// <param name="outPath">输出路径</param> /// <param name="buffer">文件的字节数组</param> public static void SaveFile(string outPath,byte[] buffer) { try { using (FileStream fileStream=new FileStream(outPath,FileMode.OpenOrCreate,FileAccess.Write)) { fileStream.Write(buffer,0,buffer.Length); } } catch (Exception ex) { WriteLog.WriteErrorInfo(ex); } } #endregion
标签:输出,字节,文件,C#,Write,buffer,FileStream 来源: https://www.cnblogs.com/lipengxu/p/15734292.html