The program I am working on needs to read in a round file then create a master file. It then can take in multiple round files after that. There are action codes in the read in file for Add and then to Delete or Change a previous file in the master file by finding the persons ID and name. I am having trouble figuring out how to update or delete. I have a function for the 3 actions set up.
void readActionCode(playerData stats[], int counter)
{
int x = 0;
for (x = 1; x < counter; x++)
{
if (stats[x].actionCode == 'A')
{
}
if (stats[x].actionCode == 'D')
{
}
if (stats[x].actionCode == 'C')
{
}
}
}