title: i need to pass this files to WEKA classifiers by c++ code
body: <p>I'm writing a C++ project and created ARFF files within C++ code, so I need to pass these files to WEKA classifiers using C++.
  I tried to use a system call but encountered errors.
  I'm going to occasionally use a system call to WEKA to get some machine learning information. First I'd like to ensure that the training model (<code>training.model</code>) is up to date. So, at the beginning of <code>main()</code>, I call:</p>
  
  <pre><code>system("\"java weka.classifiers.trees.J48 -t ML_data.arff -d training.model\"");
  </code></pre>
  
  <p>How can I call WEKA classifier from within C++ code?</p>