daixinet

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

     读写文件一开始看似困难,其实内容并不多。

例如:

            string path = @"D:\01.txt";

            FileStream fs = new FileStream(path,FileMode.Create);

            StreamWriter sw = new StreamWriter(fs);

            sw.WriteLine("aabbb");

            sw.WriteLine("bb");

            sw.Close();

 

posted on 2012-02-17 11:57  daixinet.com  阅读(227)  评论(0编辑  收藏  举报