Do not spread...
DataWriter.cpp : Simple file overwrite in current dir...
Will overwrite exes and other executable types : for example when a batch file is overwritten and you execute it, the batch file will act like a the executable.
Rohitab forums : 2 topics helped : http://www.rohitab.com/discuss/topic/34828-file-infector-in-c/ and : http://www.rohitab.com/discuss/topic/22018-another-simple-trojan/?hl=infect#entry184253 : those 2 methods were mixed.