以前一直以为用代码读写文本文件的数据很麻烦,其实都是自己心里作用,认为stream很神秘,其实只要自己深入研究一下也就那么几行代码。其实就是两个对象,StreamReader和StreamWriter,代码如下:View Code 1publicstaticvoidMain(string[]args)2{3stringFileName="测试.xls";4if(!File.Exists(FileName))5{6FileStreamf=File.Create(FileName);7stringFileContentText="<table><tr
posted @ 2012-11-28 14:21
天子门生
阅读(95)
评论(0)
推荐(0)