Sorry Mudassar but I do not understand your answer.
In your sample you specify:
contenttype="application/vnd.ms_excel" for Excel files
contenttype="application/vnd.ms_word" for word file
My questions is: what will be the contenttype for txt files
Thanks