示例#1
0
        static void ManejadorEventos(object o, CartucheraEventArgs e)
        {
            StreamWriter sw = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory + @"\Cartuchera.txt", true);

            sw.Write(e.Util);

            sw.Close();
        }
示例#2
0
        public static void ManejadorEventos(object o, CartucheraEventArgs e)
        {
            StreamWriter sw = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory + @"\Cartuchera.txt", true);

            sw.WriteLine(e.Util + " " + DateTime.Now.ToString());

            sw.Close();
        }
示例#3
0
        public static void ManejadorEventos2(object o, CartucheraEventArgs e)
        {
            StreamReader objReader = new StreamReader(AppDomain.CurrentDomain.BaseDirectory + @"\Cartuchera.txt", true);

            Console.WriteLine(objReader.ReadToEnd());
            Console.ReadKey();

            objReader.Close();
        }