I am developing a script that allows people to submit information (ex.baby names) and their information gets put in a pending file (pend.txt). When my we are ready to add the pending names to the actual database (boys.txt or girls.txt), I need the line from the pending database to be deleted.
An example line:
10|JENNIFER|Jenn,Jenny,etc|beautiful|Dutch|Jennifer Lopez|joe@joe.com|20010731|
I have no problem writing the line to the permanent database (girls.txt) but I can't figure out how to delete the individual line from the pending file without deleting the entire file. Any help would be appreciated.