code: public static void writeSequence(File file, Sequence<?> sequence) throws Exception {
  		FileOutputStream outputStream = new FileOutputStream(file);
  		BufferedOutputStream bo = new BufferedOutputStream(outputStream);
  		writeSequences(bo, singleSeqToCollection(sequence));
  		bo.close();
  		outputStream.close();
  	}
docs: Write a sequence to a file
  @param file
  @param sequence
  @throws Exception