title: Program to corrupt a file?
body: <p>I know it might seem ridiculous that you would purposely want to corrupt a file, but I assure you its for a good reason. </p>
  
  <p>In my app, I have a lot of xml serialization going on. This in turn also means, I have a lot of deserialization. </p>
  
  <p>Today I tried some disaster scenarios. I reset the server during a serialization operation, as expected it corrupted the xml file. </p>
  
  <p>The problem is, trying to "shut down" the server at exactly the right time to corrupt the file is not really optimal, firstly its luck to catch the operation during its .0001 ms write time, and secondly the server then needs to reboot.Also its just a bad idea period to be pulling the plug from the server for other reasons. </p>
  
  <p>Is there an app that can effectively corrupt a file, so that this file can be used for testing in my app?</p>