摘要:
例子: public void CreateTextFile(string fileName,string textToAdd) { string logFile = DateTime.Now.ToShortDateString().Replace(@"/",@"-").Replace(@"\",@"-") +".log"; FileStream fs = new FileStream(fileName,FileMode.CreateNew,FileAccess.Write,FileShare. 阅读全文