When you WF runs, it runs on the server, thus the text file is created on the server. You can just copy it to a workarea and then attach it to the workflow as described in your other thread on this topic.