public static void writeFile(String file, String text, boolean append) throws IOException {
        writeFile(new File(file), text, append);
     }
Writes the given string to the file
vespajlib/src/main/java/com/yahoo/io/IOUtils.java