Replace Pioneer Home   All Examples   Free Download

 New request --free

240.Text file splitter -- How to merge many files into one file, and add filename before each file?

User: editor -- 2008-08-03
Hits: 409
Type: Text file splitter   
Search all Text file splitter examples
Description:
How to merge many files into one file, and add filename before each file?
Answer:
Hint: You need to Download and install "Replace Pioneer" to finish following steps.
1. ctrl-h open 'Replace' dialog
select "advanced" page, set "insert begin text" to:

2. change "> overwrite" to ">> append" at the right bottom of the window(at the left of "Output File")
3. click "Batch..." button to open "Batch Runner" window
4. click "Pick Files" to select multiple files in folders.
5. change "set output filename" to the target filename such as result.txt, and click "apply" at right
6. click "Batch Replace" button, done!
Download Script:
scripts/240.rst.zip
Check Demo of Text file splitter