Updating files

Hello my dear friends. Any one please help me

//this is my file
01 Fish_Roll 100
02 Plain_Tea 101
03 Flour 158
04 Tea 169
05 Fruit_Juice 150
06 String_Hopers 147
07 EggSandwich 172
08 ThosaiwithChutney 147
09 Parata 103
10 SausagesBun 144
11 Roll_Bun 154
12 Tomato 145
13 Potti_cake 156
14 Ice-Cream 230
15 Vanila 220
16 Elephant_house 340
17 Banana_new 500
18 Cheese_Powder 200


i have a c++ resturant system which input data from above file. I want to know
how to add more products to the file and change the price of any item.
I am using a struct type variable array to load the file data.


Last edited on
If your code is written correctly it should read your file and update the menu by itself. Editing the file is all you should have to do.

BTW, I think I'll pass on the Potti_Cake!
can you post what you have done in the code ?
Topic archived. No new replies allowed.