save($filename); $reader = IOFactory::createReader($format); $reloadedSpreadsheet = $reader->load($filename); unlink($filename); return $reloadedSpreadsheet; } }