StreamWriter writer = new StreamWriter("file", true)
//设歼岁置指针位置
writer.BaseStream.Seek(offset, SeekOrigin.Begin)
//将buffer内的数据写进文件
writer.Write(buffer)
//关闭流
writer.Close()
欢迎分享,转载请注明来源:内存溢出
StreamWriter writer = new StreamWriter("file", true)
//设歼岁置指针位置
writer.BaseStream.Seek(offset, SeekOrigin.Begin)
//将buffer内的数据写进文件
writer.Write(buffer)
//关闭流
writer.Close()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)