天天看點

c# 建立檔案

FileStream   fs   =   File.Create(@ "c:\hot.xls "); 

StreamWriter   sw   =   new   StreamWriter(fs); 

sw.Write( "hello   world "); 

fs.Close(); 

上一篇: 伺服器端口
下一篇: c# 删除檔案