My application allows users to create and modify files. I would like them to be able to send a file as an email attachment. So, I need to first create and write to a temporary f