2011年5月6日

C#中读写文件总结

摘要: 1、使用FileStream读写文件 文件头: using System;using System.Collections.Generic;using System.Text;using System.IO; 读文件核心代码: byte[] byData = new byte[100];char[] charData = new char[1000]; try{FileStream sFile = new FileStream("文件路径",FileMode.Open);sFile.Seek(55, SeekOrigin.Begin);sFile.Read(byData, 阅读全文

posted @ 2011-05-06 22:12 Gelivable【IT随笔】 阅读(774) 评论(2) 推荐(1) 编辑

导航