It sounds like what Gopal suggests is all you need. Are you just trying to write text to a file throughout a process and then email it at the end?
I just wanted to point out one thing to consider. You could build your log throughout the session in a data item in the process and then write the text file at the very end, but depending on what kind of info you're putting in the log, you may want to consider using Append To Text File frequently throughout your process. This would mean you wouldn't lose the log information that you've built up during the session in the case that a termination occurs during the running of the process.
Another, newer way of doing this is with Data Gateways. I haven't tested it yet, but it looks like you can use Data Gateways to output log messages and/or session logs to a local file as an alternative to the File Management VBO.
------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
------------------------------
Dave Morris, 3Ci at Southern Company