c# 新建文件

引用:http://topic.csdn.net/t/20030408/02/1631407.html

FileStream   fs   =   File.Create(@ "c:\hot.xls "); 
StreamWriter   sw   =   new   StreamWriter(fs); 
sw.Write( "hello   world "); 
fs.Close(); 

posted @ 2012-07-08 23:53  镇水古月  阅读(127)  评论(0编辑  收藏  举报