You must transfer the data in some channel which both machines are understanding. A simple solution is to use some
network connection like sockets or simply use some internet service like ftp server to share the data between them.
If both machines have access to a common network drive you can save a file on it.