on your form processing page you need to compare the enetered email address against your list to see if it's already there.
<?
$mailinglist = file ('mailinglist.txt');
if (in_array ($email, $mailinglist))
{
echo "$email is already in our records";
}
else
{
// code to enter email into txt file
}
?>