title: C# writing to log file
body: <p>I want to write some events and exceptions to a log file when my app is running. The log file size is limited to N Megabytes. When the file size is more than N Megabytes, I want to overwrite from the start of the file. Since the file size is N megabytes I don't want to copy to temporary file and then rename it.</p>
  
  <p>Give any suggestions/approach for the above problem.</p>