I have a mail.dat list which contains three different emails and some other comments. I know how to use inFile.open("mail.dat"). What I want to do is use the find command to locate a string that contains'@' and output the three email addresses in to a file called addresses.dat. Does any one know how to code this?
Date: Wed, 13 Aug 2003 17:12:33 EDT
John's email is firstname.lastname@example.org.
the program would output the following information on file addresses.dat
It depends on the format of your base file with the adresses (mail.dat)...
If you know the format, you could read in the lines and search for the @... Or read in every single string or word and also use std::find() or write an own-written function (but i think thats not what you want)