What is the best method to accomplish getting data from my computer to a server so that I can then view it in a applet in a browser?
I have a sensor attached to my computer, I already have that all done and good and saving the data to a text file( it does close the file stream inbetween writes), I want the data to be updated to a server every 5 minutes or so, I was thinking it might be best to write a little program that just listens for a connection on port #### and if it gets it it takes any incoming data and writes it into a txt file on the server, run that on the server and a write a client that just tries connect and send the txt file every 5 min, is there a better way to do this?
Would this probably use little enough bandwidth to just keep the connection to the server running all the time and send each data I get(about every 5 seconds) line by line, or lump it into 5 minute updates of 60 lines at once? It is just temperature data, so the time between updates doesn't really matter since it shouldn't change much in 5 min, so really which ever is more reliable is preferred.
I already have an applet made to display the data also, just need to get that txt file onto the server without me.