2013年8月7日

用C#读取txt文件的方法(转)

摘要: 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 @ 2013-08-07 09:54 星空夜夏梦 阅读(493) 评论(0) 推荐(0) 编辑

导航