static void ManejadorEventos(object o, CartucheraEventArgs e) { StreamWriter sw = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory + @"\Cartuchera.txt", true); sw.Write(e.Util); sw.Close(); }
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(); }
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(); }