示例#1
0
        static void Main(string[] args)
        {
            Program      pr     = new Program();
            StreamWriter writer = new StreamWriter("text.txt");
            string       str    = "Lesha";

            pr.Encryption(ref str);
            writer.Write("\\x" + str);
            pr.Decript(ref str);
            writer.Write("\n" + "\\x" + str);
            //Console.WriteLine(str);
            writer.Close();

            StreamReader reader = new StreamReader("text.txt");

            Console.WriteLine(reader.ReadLine());
            Console.WriteLine(reader.ReadLine());
            reader.Close();
            Console.ReadKey();
        }