Hi, The textwriter is not writing anything to the file... Even no exception occurs. TextWriter tw = new StreamWriter(@"C:\ErrorLog",true); tw.WriteLine("================================================================"); tw.WriteLine("Process Begins at " + DateTime.Now.ToString()); Please can anybody help me in this regard Thanks. Please can anybody help me in this regardThanks.
tw.WriteLine("Process Begins at " + DateTime.Now.ToString()); Please can anybody help me in this regard Thanks.
Please can anybody help me in this regard Thanks.
using
(FileStream f =
new
FileStream(fileName, FileMode.Append, FileAccess.Write, FileShare.Write))
{
(StreamWriter w =
StreamWriter(f))
w.WriteLine(
"stuff"
);
}