Class to generate text file in AX 2009

I want to make a Class to generate a text file in AX 2009.I want to have fixed data in header and footer of the file and different data in body of the file.Can anyone help me how to go about it ? Thanks in advance

Hi Manra,

which format of text you want to generate. CSV or some other …

Thanks,

Valeru.

.txt file.