title: converting boost::filesystem::path into char?
body: <p>i have worked out how to pass the boost path the required format, but i am having some issues figuring out hot to pass the path.stem into a char array,  and then run some check on the filename and take the right action </p>
  
  <p>need to read the filename and check for the next available number in the and then action, i was intending to use a for loop to get the number into an char array and then compare to this separate counter </p>
  
  <p>how can i feed in the path() character by character into a array - or is there a better way ! </p>
  
  <pre><code>int count(boost::filesystem::path input) {
  
  cout &lt;&lt; "inputzz :  " &lt;&lt; input &lt;&lt; endl;
  
  
  char data;
  wstring winput;
  for (int a = 0; a &lt; 4;){
  
  //boost::filesystem::absolute(input).string();
  
  //cout &lt;&lt; input.generic_string() &lt;&lt; endl;
  
  
  
  (input.generic_string()) &gt;&gt; data;
  
  
  data &lt;&lt; (boost::filesystem::path()input.generic_string());
  
  
  //a++
  };
  </code></pre>