November 30th, 2016, 12:48 AM
How to copy the contents of a file into another file multiple times?
I have a file, i need to copy the contents of the file into another file with multiple times.
The file which i have is having the content as "Hello World". i need to copy the content into multiple times into another file say for ex. 5 times. The output i need is something like below in the new file
Please help me on this.Thanks in Advance!
November 30th, 2016, 07:13 AM
Re: How to copy the contents of a file into another file multiple times?
What have you tried?
If you do not close the output file, everything that is written to it will go to the end of the file.
If you close the output file and want to append new data to the end of the file, use a constructor that has the append argument.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!