Check out example codes for "copy contents of multiple files to one file powershell". It will help you in understanding the concepts better.

Code Example 1

Get-ChildItem d:\scripts -include *.txt -rec | ForEach-Object {gc $_; ""} | out-file d:\scripts\test.txt

Learn ReactJs, React Native from akashmittal.com