Im going crazy over this piece of code, it compiles but the exe is huge
and it doesent copy corectly, the file in program files is 0 kb.. (so empty)
could annybody please tell me what to change or maybe use another
command.. (what i basicly want to do is copy the file that is being
executed to another directory)
thanx !
Code:const char *src = "\\instal.exe";
ifstream input(src,ios::binary);
const char *dst = "c:\\Program Files\\myprogram.exe";
ofstream output(dst,ios::binary);
output <<input.rdbuf();