Monday, January 1, 2018

WAP in C++ to read file “sports.dat” and copy only those records where event name is ATHLETIC using the concept of Data file handling


Aim :  Given a binary file “sports.dat” containing records of the following structure type
Struct sports 
     char event[20];
     char participant[10][30]; 
}
WAP to read this file and create another file called “athletic.dat” copying only those records where event name is “athletic”

CODE:

OUTPUT:


No comments:

Post a Comment