code: public void exportScores(OutputStream outputStream, String delimiter) throws IOException {
          StringBuilder sb = new StringBuilder();
          sb.append("Iteration").append(delimiter).append("Score");
          for (Pair<Integer, Double> p : scoreVsIter) {
              sb.append("\n").append(p.getFirst()).append(delimiter).append(p.getSecond());
          }
          outputStream.write(sb.toString().getBytes("UTF-8"));
      }
docs: Export the scores in delimited (one per line) UTF-8 format with the specified delimiter
  
  @param outputStream Stream to write to
  @param delimiter    Delimiter to use