The Text file looks like this:
Apple,Itunes,1,7.3
Microsoft,Windows Media Player,1,10
.... and so on.....
The parse method is:
private IApplication parseLineToApp(String lineFromTxtFile) {
Scanner lineScanner = new Scanner(lineFromTxtFile);
lineScanner.useDelimiter(",");
return new Application(lineScanner.next(), lineScanner.next(), lineScanner.nextInt(), lineScanner.next());
}
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
Thanks in advance :)