I think the inFile:read() thing was the problem, as when I changed that, the error changed. I honestly don't know exactly what fixed the problem, but I got it working and cleaned things up a bit! I think it was the read("*a") and requiring io, but I'm not entirely sure.Thanks a bunch for your help, here's the final product:
local manager = {}
local component = require("component")
local event = require("event")
local io = require("io")
if not component.isAvailable("modem") then
error("No compatable network card found.")
end
local modem = component.modem
local SENDPORT = 1
function m