Hi,
Gone through many post and find a solution to create Folder Structure as in following Code:
Please Login or Register  to view this content.
I have also found a piece of Code to generate Text Files as follows:

Please Login or Register  to view this content.
I wish to join both join to produce text file with contents in in folder created at desired location.
Say Folder Structure in
Col A1 = D:/Folder1/SubFolder1/TextFile.txt
Col A2 = Content to put into TextFile.txt

Or as follows
Col A1 = Folder Name = Folder 1
Col B2 = Sub Folder Folder Name = SubFolder1
Col C3 = Text File Name = TextFile.txt
Col D4 to D6 = Contents to put inside Text File
Data Columns defined above may falls under following shape too, that is not an issue.
A1/B2/C3/D4/D5/D6 may be A1/A2/A3/A4/A5/A6

I know a fresh code may require to achieve this I posted both codes just for reference.