I am currently writing a script that consolidates all of the contents of several text files into one file. I would like to (if possible), write into the file, the name of the file above the contents from that file.
Example:
Textfile1.txt
ContentContentContent
ContentContentContent
Textfile2.txt
ContentContentContent
ContentContentContent
Textfile3.txt
ContentContentContent
ContentContentContent
Is this possible?