Posted 30 March 2013 - 05:45 AM
I am making a computer that sends file contents as a message through rednet. Here is the code for the server
I am getting the error on line 7
What is wrong?
Thanks in advance!
-Viextra
Spoiler
rednet.open("top")
while true do
event, id, message = os.pullEvent()
if event == "rednet_message" then
if message == "startup" then
f = fs.open("startup","r")
file = f.readAll() --WHERE MY ERROR IS
f.close()
rednet.send(id,file)
end
end
end
I am getting the error on line 7
What is wrong?
Thanks in advance!
-Viextra