Deleting from a txt file

$gb_file = fopen( “guests.txt”, “a+” );
if ( fwrite($gb_file, “$name\t$email\n”) ) {
$body = “My message Text…\n”;
$body .= “$name\n”;
$body .= “$email\n”;
mail( “[email protected]”,“Guest Book Entry”, $body );
echo “Thanks!
else {
echo “could not write file…

I would really like to be able to delete entries out of the txt file this writes to. Does anybody know how to do this or create functions to delete?

Duplicate post and in wrong section. Closed this one after replying to other one.

Sponsor our Newsletter | Privacy Policy | Terms of Service