예제 #1
0
    public static string ReadText(string FileNa)
    {
        string result;

        try
        {
            result = StatsSL.Decyt(Encoding.ASCII.GetString(File.ReadAllBytes(FileNa + ".AnGer").Reverse <byte>().ToArray <byte>()));
        }
        catch
        {
            result = "";
        }
        return(result);
    }
예제 #2
0
    public static bool WriteText(string FileNa, string Text)
    {
        byte[] array = Encoding.ASCII.GetBytes(StatsSL.Encyt(Text)).Reverse <byte>().ToArray <byte>();
        bool   result;

        try
        {
            FileStream fileStream = new FileStream(FileNa + ".AnGer", FileMode.Create, FileAccess.Write);
            fileStream.Write(array, 0, array.Length);
            fileStream.Close();
            result = true;
        }
        catch
        {
            result = false;
        }
        return(result);
    }
예제 #3
0
 public static decimal LoadNum(string Data, int Loc)
 {
     return(Convert.ToDecimal(StatsSL.GetValueFile(Data, Loc)));
 }