title: Is it safe to interrupt a write() to a file?
body: <p>Is there any risk related to interrupting a <code>write()</code> to a file? Be it closing a GUI program in the middle of a write, keyboard interruptions, what have you. My main concern is that it might corrupt some other unrelated data in my drive. I don't have much knowledge in this topic so being paranoid is all that I can do. I want to make sure it's safe since it's important data that I'm dealing with. Also, would the risk (if any) differ depending on the operating system?</p>