alsoumhi 0 Junior Poster in Training

Hi experts, I am having very small error with my attachment file.
the thing is , if I let my servlet send e-mail fwith attachment file exists on my computer and that file I edit by myself , there is no error with my file , so if i download it from my e-mail and open it again i will find it as I sent it. however , if that file is created by program and let my mail servlet to send an e-mail with that file as an ttachment file , then if i download it from my mail , i will not get it as it is edited by the program
let' say the program edits the file like this:
hello how are you guys
let's see if the file works or not
this is as a test only
thank you very much

I will get this after download:
hello how are you guys? this is as a test only ?thank you very much
actually this character( ? )is not what I saw , just to let you understand me , because I couldn't copy paste the real character, and if I do so it will give me here as new line
do you know what is the solution , please help me guys,
last thing if I would create (doc or pdf) file how can I do that instead of text file please help me
goood luck
thanks