Converting from Java to C++ Reading a File, and parsing
<p>The Text file looks like this:</p>

<pre><code>Apple,Itunes,1,7.3   
Microsoft,Windows Media Player,1,10
</code></pre>

<p>.... and so on.....</p>

<p>The parse method is:</p>

<pre><code>private IApplication parseLineToApp(String lineFromTxtFile) {
  Scanner lineScanner = new Scanner(lineFromTxtFile);
  lineScanner.useDelimiter(",");

  return new Application(lineScanner.next(), lineScanner.next(), lineScanner.nextInt(), lineScanner.next());
 }
</code></pre>

<p>I want to do the same thing in c++ to create a new application().
Note: I already have an application class, and need to add that application to a repository which is a collection of applications</p>

<p>Thanks in advance :)</p>
