dofile("/git-scripts/utils") modemSide = utils.getSideOf("modem") --get side the modem is on rednet.open(modemSide) --get message, no timeout id, msg, dist = rednet.receive() print("Data received!") --get filename term.write("Output filename: ") name = tostring(read()) --decompress string content = textutils.unserialize(msg) --write to file local file = fs.open(name, "w") file.write(content) --finish up file.close() rednet.close(modemSide)