private void write(String fileName,String content){
  Path path=Paths.get(this.path,"exported");
  Path file=path.resolve(fileName);
  try {
    Files.createDirectories(path);
    try (BufferedWriter writer=Files.newBufferedWriter(file,CHARSET)){
      writer.write(content);
    }
   }
 catch (  IOException ex) {
    LOGGER.warning("Error writing status: " + ex);
  }
}

private void write ( String fileName , String content ) { Path path = Paths . get ( this . path , "exported" ) ; Path file = path . resolve ( fileName ) ; try { Files . createDirectories ( path ) ; try ( BufferedWriter writer = Files . newBufferedWriter ( file , CHARSET ) ) { writer . write ( content ) ; } } catch ( IOException ex ) { LOGGER . warning ( "Error writing status: " + ex ) ; } }
write the given content to a file .
