Save the header row to a variable that can be called to build the output text.

Could you attach sample text file?