码迷,mamicode.com
首页 > 编程语言 > 详细

C# 数组快速读取和写入

时间:2017-03-21 19:41:31      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:logs   att   color   style   快速   pen   isp   format   txt   

摘要:

C# 数组快速读取和写入

1 BinaryFormatter binaryFormatter = new BinaryFormatter();
2 FileStream fileStream = new FileStream(@"E:\context.txt", FileMode.Create);
3 binaryFormatter.Serialize(fileStream, a);
4 fileStream.Dispose();
5 
6 FileStream s = new FileStream(@"E:\context.txt", FileMode.Open);
7 float[,] b = (float[,])(binaryFormatter.Deserialize(s));

 

C# 数组快速读取和写入

标签:logs   att   color   style   快速   pen   isp   format   txt   

原文地址:http://www.cnblogs.com/HostIP/p/6596045.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!