github/GitPad — pull request #10 by crdx (2012-10-13 23:08:40+00:00)
Title: check that the temporary file exists before trying to delete it

Fixes #6.

The cause of the crash was `File.Delete` being passed a non-existent file, so check that it exists before trying to delete it.