+\r
+ #region Métodos privados\r
+\r
+\r
+ private void EscribirArchivo( string pathName, string subject, string titulo )\r
+ {\r
+ StreamWriter w = null;\r
+ if ( File.Exists(pathName) )\r
+ w = File.AppendText( pathName );\r
+ else\r
+ w = File.CreateText( pathName );\r
+\r
+ w.WriteLine( @"*** " + titulo + "**************************************************" );\r
+ w.WriteLine( @"*** " + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + " ******************************************************" );\r
+ w.WriteLine( @"******************************************************************************" );\r
+ w.WriteLine( @"Subject: " + subject );\r
+ w.WriteLine();\r
+ w.WriteLine( @"------------------------------------------------------------------------------" );\r
+ w.WriteLine();\r
+\r
+ w.Close();\r
+ }\r
+\r
+ #endregion Métodos privados\r