Your inventory class would have restock(), sell() methods, etc, as well as find methods by description or item code. A sell() method would take the number of items sold and alter the counts accordingly.123 Motherboard: 3
234 Celeron chipset: 2
345 AMD chipset: 2
456 350W power unit: 2
567 650W power unit: 0
678 2GB RAM unit: 3
789 4GB RAM unit 1
987 1TB disc: 1
876 2.5TB disc: 1
765 4 TB disc: 0
Randal Mortell wrote:The text file I'm reading in is just numbers. the first four are the product code. the second set is the price and the final set is the quantity on hand. Its the file that we are supposed to use. it doesn't include names for any of the products.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here