AllTheTimeWorld.com

csharp pizzaCreate a file for the toppings

Create a file for the toppings

Create a file for the toppings

We will do a large project in several steps.
Start by creating a list of toppings such as the list shwon below:
Note that each line has a topping followed by a comma and the price.
Save the topping file as c:\mydata\pizzatoppings.txt.
If you use a different file name, be sure to modify the code to match.

Pepperoni,2.00
Mushrooms,1.00
Onions,1.00
Sausage,1.75
Bacon,2.00
Black olives,1.25