Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local filePath = args[1]
- if filePath == nil then
- print("ERROR: Please specify a file location.")
- return
- end
- local station = peripheral.find("Create_Station")
- local file = fs.open(filePath, "r")
- local body = file.readAll()
- file.close()
- local schedule = textutils.unserialize(body)
- schedule["color"] = nil
- station.setSchedule(schedule)
- print("Successfully set train schedule to \""..filePath.."\".")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement