I have found and edited this so I think It would work. The only problem Is is when I Run the program Both input and Output end up being empty. (Okb. Instead of 45kb) What's the matter?
When you say "I have found this code and edited it" than makes me think this is a copy paste from our good buddy Google?
Drop the "FILE* in\out..." stuff and stick with the fstream library, it's much easier to read. The way you are trying is valid but I think it would be easier for you to #include <fstream> (pun intended :D).