Use sys::fs::createTemporaryFile.