title: Open/Write a file that is already opened by another app in readonly mode
body: <p>I am using Visual Studio 2012 with C++ and am encountering the following problem: </p>
  
  <p>I have a 3rd party app that runs constantly in the background and outputs to a text file whenever an event occurs. I want to use another app (the one I am working now) to place a timestamp to the file (say every 5 secs) so that I know approximately when the event occurs. The event occurs randomly and infrequently. </p>
  
  <p>I am using the CreateFile and WriteFile functions but WriteFile will give me an error because it doesn't have write permission. I am wondering if there is a way to ignore this write permission and just write to the file regardless. I know that this is not safe but is it possible?</p>