I dont have use Delphi, but i have 1 idea(idk dose it work in Delphi..)
make 1 procedure and 1 function(or 2 procedures):
function have just huge conts. that haves all emails in it
function email_control(new_email:string)new:boolean;
const
all_emails=['--------------'
,'--------------'
,'--------------'
{stop}];
begin
if new_email in all_emails then
new:=false
else
new:=true;
end; and procedure that adds emails in function:
procedure add_new_email(new_email);
var fmain,fhelp:text;
line:string;
begin
assign(fmain,email_control.deb);
assign(fhelp,email_control_help.txt);
reset(fmain); rewrite(fhelp);
readln(fmain,line);
repeat
writeln(fhelp.line);
readln(fmain,line);
until pos({stop},line')<>0;
writeln(fhelp, ','+new_mail);
writeln(fhelp,'{stop}];');
repeat
readln(fmain.line);
writeln(fhelp,line);
until eof(fmain);
close(fhelp);
rewrite(fmain);reset(fhelp);
repeat
readln(fhelp.line);
writeln(fmain,line);
until eof(fhelp);
close(fmain);
end;
you can get this pocedure and function to other program with
{$i name of save}
its in pascal but i hope it helps
i hope it helps
one idea more you can make file where are just all mails on diferent lines and make much easyer system(then my 1st idea:sad:), but i keep my work it may halps you