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