I have a program that copies a file to another.... it uses the fstream functions... It works fine when i copy text files but when i try to copy exe's or other files the copied file is corrupt.. I even tried the ios::binary mode.. But it still does not work.. I think the problem is i copy character by character till end of file(EOF) is encountred.. Since the exe's may have -1 some where in between it terminates there.. this is my guess.... So how do i make the prog work.....
Thanx
Vasanth