摘要: 序列化的步骤:前提:要序列化的类型一定要支持序列化1、创建文件流2、创建格式化器3、进行序列化操作4、关闭资源1、创建文件流 fs = new FileStream("abc.bin", FileMode.OpenOrCreate);//2、创建格式化器BinaryFormatter bf = ne... 阅读全文
posted @ 2015-02-05 16:06 游林 阅读(188) 评论(0) 推荐(0)
摘要: File 类 定义在System的命名空间中 用于 创建、复制 删除 移动和打开文件Create(string filePath)创建文件Open 打开文件Copy 复制文件Move (string SfilePath,string dFilePath)将指定的路劲的文件移动目标的路劲Exists ... 阅读全文
posted @ 2015-02-05 15:59 游林 阅读(523) 评论(0) 推荐(0)