Re-Read what you wrote. If you are sending the text file, you can just send as an attachment. There are plenty of tutorials out there for that.
Originally posted by ThiagoRlx
Questions:
1. Would
Code:
sleep(int x);
be ok for this kind of software?
No
If you want it to remain responsive while it sends, you will have to learn multithreading. This prevents the program from becoming unresponsive while it tries to send mail.
These are very basic questions and concepts. What I advice you to do is find a C++ book and learn C++. You will learn about a lot of this stuff. You can then find tutorials online and begin to learn more about what you want to to do.
A good KeyLogger actually takes some work. If you are looking to use it for Black Hat uses, it will be identified as a Key Logger the moment it is downloaded.