public static void write(String filename,Instances data) throws Exception {
  DataSink sink;
  sink=new DataSink(filename);
  sink.write(data);
}

public static void write ( String filename , Instances data ) throws Exception { DataSink sink ; sink = new DataSink ( filename ) ; sink . write ( data ) ; }
writes the data to the given file .
