private static void CheckForExistingOutputFile(string OutputFile) { if (File.Exists(OutputFile)) { throw new IOException("The results output file:\n\"" + OutputFile + "\"\nalready exists."); } return; }