Good, I am more or less new in c #, in access to data and others, and I need to go making a log of where my program goes until the end, to know by try catch
and others how it works.
My question was, how can I make it write messages in lines of text I have tried this, and do not write.
public static void metodoblablabla(){
file = new System.IO.StreamWriter("C:/ruta/log.txt");
Hace cosas;
Hace cosas;
//:) perdón por no especificar, pero es innecesario en este caso.
try{
file.write("Ha llegado hasta linea X");
file.close();
}catch(Exception e){
file.WriteLine(e.Message);
file.close();
}