Based on the title of your question, and the content of your post; I have no idea what the end result of what you're seeking should be. You would probably do well to read How do I post a question effectively?. Have you made any attempt to create your desired output? If so, what did you do? Can we see the product of your previous effort(s)? Your code? ...
in reply to Generic output file
I'm sorry, but without more input from you, rajiyengar. I don't think it's possible to provide a solution.
ˇλɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH