Deleting from a txt file

[php]<?
$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( “my_email@my_domain.edu”,“Guest Book Entry”, $body );
echo “Thanks!
\n”;
}
else {
echo “could not write file…
\n”;
}
?>[/php]

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