1. Open file
2. Print list of markets
3. Create a new list
4. Print new list of markets
5. Save new list
6. Exit
Выбранный пункт меню: 1
Enter path to file to open (ex. C:\\file.txt):
Вводим: d:\in.dat
*File readed successfully! Press any key…*
Возврат в меню.
Выбранный пункт меню: 2
MAGAZINE #25
Address
City: Moscow
Street: Lenina
House: 14
Products
1)
Name: butter
Price: 17
Time: 12.05.08
2)
Name: meat
Price: 19
Time: 22.07.09
3)
Name: milk
Price: 25
Time: 17.03.08
4)
Name: eggs
Price: 47
Time: 07.08.08
5)
Name: juice
Price: 12
Time: 24.11.08
MAGAZINE #756
City: Minsk
Street: Zhukova
House: 52
Time: 07.04.08
Price: 21
Time: 29.02.09
Price: 23
Time: 01.11.09
Price: 33
Time: 09.10.08
Price: 14
Time: 27.08.08
MAGAZINE #666
City: Kiev
Street: Gagarina
House: 47
Price: 22
Price: 29
Time: 26.02.09
Time: 26.07.08
Price: 56
Time: 31.10.08
Price: 16
Time: 02.05.08
MAGAZINE #748
City: Petersbutg
Street: Pavlovskaya
House: 62
Price: 30
Time: 19.08.08
Price: 27
Time: 27.08.09
Time: 10.03.08
Price: 31
Time: 09.08.08
Time: 30.11.08
MAGAZINE #33
City: Volgograd
Street: Potemkina
House: 57
Price: 34
Time: 10.07.08
Time: 27.03.08
Price: 38
Time: 13.02.08
Time: 16.05.08
Any key to next record...
Any key to continue...
Выбранный пункт меню: 3
Enter product's name:
Вводим meat
*New list created successfully! Press any key…*
Выбранный пункт меню: 4
Выбранный пункт меню: 5
Enter path to file to write (ex. C:\\file.txt):
Вводим d:\meat.dat
*File created successfully! Press any key…*
Выбранный пункт меню: 6
Работа программы завершена.
Содержимое выходного файла (meat.dat):
/* Начало файла */
25
Moscow
Lenina
14
butter
17
12.05.08
meat
19
22.07.09
milk
17.03.08
eggs
47
07.08.08
juice
12
24.11.08
756
Minsk
Zhukova
52
07.04.08
21
29.02.09
23
01.11.09
33
09.10.08
27.08.08
666
Kiev
Gagarina
22
29
26.02.09
26.07.08
56
31.10.08
16
02.05.08
748
Petersburg
Pavlovskaya
62
30
19.08.08
27
27.08.09
10.03.08
31
09.08.08
30.11.08
Volgograd
Potemkina
57
34
10.07.08
27.03.08
38
13.02.08
16.05.08
---------------
/* Конец файла
Работа программы (Пример №2):
Страницы: 1, 2, 3, 4