I'll give you an idea, it might work:
Use HTTP.Request
to read the .txt file and save it via FSO
to your site. Then use an upload component available on your server to send the generated .txt file.
All this (the scripts) you find easy by searching and configuring according to your FTP.