if fs.exists("ServerID") then
f = fs.open("ServerID", "r")
Server = f.readLine()
f.close()
IsServer = true
else
IsServer = false
end
I tried this out and it returned the error: Rednet:[347]: positive number expected. This is because I wanted to use this to send stuff to the server computer by using "rednet.send(Server, "Stuff")". I'm pretty sure that f.readLine() returns a string rather than a number, and so that would be the problem. Is there a way I could get the number out of the string? Please help, thanks in advance.












