I have 4 different files in some places, for example: D: \ 1.txt D: \ 2.txt D: \ 3.txt and D: \ 4.txt
I need to create a new file as NewFile.txt , it should contain all the contents contained in the above files 1.txt, 2.txt, 3.txt 4.txt .......
All data must be present in a new separate file (NewFile.txt) ..
Please offer me some ideas to do the same in java or Groovy ....
java string file groovy
Bharath an
source share