public static void writeStringToFile(String string, String path) throws IOException {
    Files.write(Paths.get(path), string.getBytes());
  }
Writes specified string to specified file path.

@param string to write
@param path file path
@throws IOException
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java