Question: how to copy data from one file to another in cpp?
Answer: The first step you have to create a two file one is source. txt and second one is destination. txt then after putting some content in the source file and save the file. Now Run the program using Dev C++ and when the program requests you to enter the name of the source file, then enter the source.