Hi I need to take data from a text file "cost.txt" and be able to do some simple calculations like figure out the total cost, grand total etc, but the data in the file is formmated like this.
Books 45.01
Pens 21.03
Pencils 10.90
Hats 50.00
Caps 800.00
Food 1.00
Ideally i'd like to be able to pull out the items and store them in a string array and then also pull out the numbers and store them in a float array but I've had no luck in doing so. I can only seem to pull them all out then I have the issue of them all being a string when i need the cost to be float.