You might want to elaborate on the replacement requirements.
Are you trying to replace "name.come" with a complete email
address? Does the file with email addresses contain one
email address and no other text? Examples would help.
Also it might be easier to help if you show us the code you
have so far.