Questions tagged «filestream»




6
如何在C#中读取和写入文件
我想同时读取和写入文件。这行不通。 static void Main(string[] args) { StreamReader sr = new StreamReader(@"C:\words.txt"); StreamWriter sw = new StreamWriter(@"C:\words.txt"); } 如何在C#中读取和写入文件?
69 c#  file-io  filestream 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.