U have 3 issues here.
(1) Reading the file
(2) Processing it
(3) Sending it by Email.
All the three are not that complicated though.
Reading and processing the inputs are not difficult.
For sending the email, if its an SMTP server, u need to implement the SMTP protocol.
For yr file operations, C++ provides lotsa stream classes to do the stuff.
Start the job in the order that i've mentioned. It will be easy