public static string writtxt(string html, string file) { FileStream fileStream = new FileStream(Environment.CurrentDirectory + "\\" + file, FileMode.Append); StreamWriter streamWriter = new StreamWriter(fileStream, Encoding.Default); streamWriter.Write(html + "\r\n"); streamWriter.Flush(); streamWriter.Close(); fileStream.Close(); return "ture"; }
时间: 2024-10-29 19:08:45