Dialog with FTP using Ruby
The remote server is a mainframe, using EBCDIC, not ASCII or UTF-8, and there are several complexities that I did not incorporate into the above code. When mainframes are involved, even the simplest task becomes a considerable effort. Best to leave the infrastructure in place and work with it.