What is the buffer size. It seems kinda small.
local downloaded = http.get("http://www.ccds.bugs3.com/"..filename..".html")
local downfile = fs.open("disk/files/"..filename, "w")
local nxtline = downloaded.readLine()
repeat
downfile.writeLine(nxtline)
count = count + 1
if count == 15 then //Errors after 1 pass if anything but 20 it appears
downfile.flush()
count = 0
end
nxtline = downloaded.readLine()
until nxtline == "<!-- www.serversfree.com Analytics Code -->"
downfile.close()
Edited by TYKUHN2, 09 August 2015 - 06:17 PM.











