private void updateConfigFile(String content,Path configFile) throws IOException {
  Files.write(configFile,content.getBytes(),StandardOpenOption.TRUNCATE_EXISTING,StandardOpenOption.CREATE);
}

private void updateConfigFile ( String content , Path configFile ) throws IOException { Files . write ( configFile , content . getBytes ( ) , StandardOpenOption . TRUNCATE_EXISTING , StandardOpenOption . CREATE ) ; }
writes content to file .
