源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
601 B

  1. using LuaFramework;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Diagnostics;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Text;
  8. public class WriteFile
  9. {
  10. public static void save(string information)
  11. {
  12. if (File.Exists(Util.DataPath + "pos_text.txt"))
  13. {
  14. File.Delete(Util.DataPath + "pos_text.txt");
  15. }
  16. FileStream aFile = new FileStream(Util.DataPath + "pos_text.txt", FileMode.OpenOrCreate);
  17. StreamWriter sw = new StreamWriter(aFile);
  18. sw.Write(information);
  19. sw.Close();
  20. sw.Dispose();
  21. }
  22. }