Posted 01 August 2015 - 02:58 PM
I've just completed a program that will allow you to download from the internet (assuming HTTP is enabled, of course) a file and then save it. This is meant to be used for programs, but could really be used for anything. It's really simple, and meant so that you only have to write a program once (could even be written on a real world computer and put online).
Obviously, you won't be able to modify the programs on the site this is downloading from, but you can use my ones if you like, although I haven't done anything terribly impressive. You'd probably want your own, and there are sites that do hosting like this for free. You literally just put the file on a server (I've tended to just upload my CC files straight from where they're stored in my save files).
Simple as could be, but a big time saver if you use a lot of computers and programs.
Obviously, you won't be able to modify the programs on the site this is downloading from, but you can use my ones if you like, although I haven't done anything terribly impressive. You'd probably want your own, and there are sites that do hosting like this for free. You literally just put the file on a server (I've tended to just upload my CC files straight from where they're stored in my save files).
Simple as could be, but a big time saver if you use a lot of computers and programs.
local fileName = ...
local getResponse = http.get("http://www.ccprograms.netne.net/" .. fileName)
local file = fs.open(fileName, "w")
file.write(getResponse.readAll())
file.close()
getResponse.close()