Hi there,
I create a temp file and then later in my program I send that file as email attachment.
The problem is since it's a temp file, it puts some number behind my file name. For ex. Test45690.txt
However, I don't want those number in my file name when I send that it as attachment, what should I do?
File temp = File.createTempFile(fileName, ".txt");
BufferedWriter out = new BufferedWriter(new FileWriter(temp));
Please help..
Thanks,
Edited by: ASH_2007 on Apr 14, 2009 6:28 AM