Anda di halaman 1dari 1

Text report format

*Id* *Name* *Age* *Gender* *Grades*


*Address*
101 Popescu Ion 21 M 9 9 10 Calea
Dorobanti 17
25 Bianca 21 F 9 10 10 10 8
Sos. Panduri
14 Gigel 21 M 8 8 7 Calea
Victoriei 21

Input text file format:

3
101#Popescu Ion
21
M
3 9 9 10
Calea Dorobanti 17
25#Bianca
21
F
5 9 10 10 10 8
Sos. Panduri
14#Gigel
21
M
3 8 8 7
Calea Victoriei 21

Binary file structure:

no_students|id_student|name_on_50_bytes|gender|no_grades|grades_value|age|
address_value|id_student|name_on_50_bytes|gender.....

* the| symbol is not part of the binary file


** it is NOT allowed to write the number of characters before the address value
(for reading, characters must be numbered and then move back with - seek)
***the name and address contain the terminator \0

Anda mungkin juga menyukai