Sending information from Max to a server

riotchild's icon

Imagine a simple patch where a user presses a button, which then generates a random number between 1 and 100. After the user clicks the button 10 times, I'm looking to send and store the list of the 10 random numbers:

1 45
2 64
3 12
4 56
etc

to a remote server as a .txt file.

Is this possible?