public void writeFileContent(String content,Path path) throws CommandException {
  try {
    Files.write(content,path.toFile(),StandardCharsets.UTF_8);
  }
 catch (  IOException e) {
    throw new CommandException("Cannot write file content in path: " + path.toString(),e);
  }
}

public void writeFileContent ( String content , Path path ) throws CommandException { try { Files . write ( content , path . toFile ( ) , StandardCharsets . UTF_8 ) ; } catch ( IOException e ) { throw new CommandException ( "Cannot write file content in path: " + path . toString ( ) , e ) ; } }
writes the content into a file in utf8
