Posted 05 May 2014 - 08:31 AM
I made a whoopsydoodles and have no clue what's wrong but here's my code. Well. I think it's a spelling error that I can't find. Attempt to call nil on line 52
By the way, if it's something painfully obvious that would make you question if I even know how to use a keyboard, in my defense, I'm incredibly tired atm.
function fMerge(file1, file2)
local hf = fs.open(file1, "r")
local m1 = hf.readAll()
hf.close()
local mf = fs.open(file2, "r")
local m2 = mf.readAll()
mf.close()
cf = m1.." "..m2
mf.open(file1, "w") --Line 52
hs.write(cf)
mf.close()
end
By the way, if it's something painfully obvious that would make you question if I even know how to use a keyboard, in my defense, I'm incredibly tired atm.