protected override void OnStart(string[] args) { FileStream fs = new FileStream(logFilePath, FileMode.OpenOrCreate, FileAccess.Write); StreamWriter sw = new StreamWriter(fs); sw.BaseStream.Seek(0, SeekOrigin.End); sw.WriteLine("some value"); sw.Flush(); sw.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)