Hi all, I am trying to write code that will read from a file that is set up as an inventory file. So, on each line you'll have something similar to:
1. Toothpaste
2. Toothbrush
etc...
The problem I'm having is saving the numeric item number into one array index, then the item description into a different array index. The user should be able to add to the file and the program will need to sort this based on item number. I can use getline, but don't know how to delimit it based on this type of file. I've tried using get, but don't know how to assemble the individual characters into one array index. Any help would be greatly appreciated, I'm new to this. Thanks in advance.