code: public static void printToFile(String filename, String message) {
      printToFile(new File(filename), message, false);
    }
docs: Prints to a file.  If the file does not exist, rewrites the file;
  does not append.