title: FANN Error 1: unable to open file
body: <p>I was trying this code but i get error,
  I can't solve this problem!</p>
  
  <p>anybody have idea?</p>
  
  <pre><code>#include&lt;iostream&gt;
  using namespace std;
  #include &lt;cv.h&gt;
  #include &lt;highgui.h&gt;
  #include &lt;fann.h&gt;
  #include &lt;fann_cpp.h&gt;
  #include &lt;floatfann.h&gt;
  int main()
  {
  
  const float connection_rate = 1;
  const float learning_rate = 0.7;
  const unsigned int num_layers = 3;
  const unsigned int num_input = 2;
  const unsigned int num_neurons_hidden = 4;
  const unsigned int num_output = 1;
  const float desired_error = 0.0001;
  const unsigned int max_epochs = 500000;
  const unsigned int epochs_between_reports = 1000;
  FANN::neural_net ann;
  ann.create_standard(num_layers,num_input, num_neurons_hidden, num_output,connection_rate,learning_rate);
  ann.train_on_file("C:\\xor.data", max_epochs,epochs_between_reports, desired_error);
  ann.save("C:\\xor_float.net");
  ann.destroy();
  return 0;
  }
  </code></pre>
  
  <p>xor.data:</p>
  
  <p>4 2 1</p>
  
  <p>0 0</p>
  
  <p>0</p>
  
  <p>0 1</p>
  
  <p>1</p>
  
  <p>1 0</p>
  
  <p>1</p>
  
  <p>1 1</p>
  
  <p>0</p>
  
  <p>The error was:
  FANN Error 1: Unable to open configuration file "C:\xor.data" for reading.</p>
  
  <p>Thanks.</p>