using LuaFramework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
public class WriteFile
|
|
{
|
|
|
|
public static void save(string information)
|
|
{
|
|
if (File.Exists(Util.DataPath + "pos_text.txt"))
|
|
{
|
|
File.Delete(Util.DataPath + "pos_text.txt");
|
|
}
|
|
|
|
FileStream aFile = new FileStream(Util.DataPath + "pos_text.txt", FileMode.OpenOrCreate);
|
|
StreamWriter sw = new StreamWriter(aFile);
|
|
sw.Write(information);
|
|
sw.Close();
|
|
sw.Dispose();
|
|
}
|
|
}
|