code: public void write(BufferedWriter writer) throws Exception {
  		Enumeration enm;
  
  		// header
  		writer.write("# generated " + new Date());
  		writer.newLine();
  
  		enm = elements();
  
  		while (enm.hasMoreElements()) {
  			writer.write(enm.nextElement().toString());
  			writer.newLine();
  		}
  
  		writer.flush();
  		writer.close();
  	}
docs: Writes the current stopwords to the given writer. The writer is closed
  automatically.
  
  @param writer
  the writer to get the stopwords from
  @throws Exception
  if writing fails