If you don't want to use a database, you could use grep for such
things. Something like...
system( "grep -l "Race human~" ../player/* > ../player/update.pf" );
Then just load up that file (update.pf), read it line by line and
update them. The file would look something like...
../player/Davion
../player/Richard
../player/Trustan
Now, if you want to add an endchar for reading, you can simply
fp=fopen("../player/update.pl", "a");
fwrite(fp, "\n$\n");
fclose(fp);
Then you can just read till the path is $. Kinda like other File I/O
in rom. Hope this sheds some light... and good idea :) Tis what I'll
do. Of course, you could skip all this, and just have a check when the
player logs on. Like, add a new CON_ state, and have
send_to_char("Your race has been deleted. Please choose another.\n\r",ch);
d->connected = CON_RACE_DELETED;
break;
case CON_RACE_DELETED:
if( ( race = race_lookup(argument) ) == -1 )
{ send_to_char("Invalid race, please enter another",ch);
break;
}
...
Then just have all the race setting stuff. Parts, etc. It would
probably be alot better, and nicer to your players if they get to
choose thier new race.
Davion