在c# 中创建的文件怎么才能保存在计算机里呀

来源:百度知道 编辑:UC知道 时间:2024/09/25 09:30:17

private void saveFileFunction(String fullFileName)
{
FileStream myFSTM=new FileStream(fullFileName,FileMode.Create,FileAccess.Write); StreamWriter mySTMW=new StreamWriter(myFSTM);
mySTMW.Write(myString) //What you want to save…
mySTMW.Close();
myFSTM.Close();
}

。。无 语了,你会C#的吧。C#是种语言,你要存的话至少要有个开发工具,VS比较好用。你可以试下。