function save(self) local fd = io.open(self.filename, "w") fd:write(self.data) fd:close() end