code: private void writeFile(File file, String csvData) throws IOException {
  
          LOG.debug("Will try to write CSV data to file: " + file.getAbsolutePath());
          FileUtils.writeStringToFile(file, csvData, Charset.forName(ENCODING), false);
          LOG.debug("Finished writing CSV data to file: " + file.getAbsolutePath());
      }
docs: Write the given string to the file provided.