How to save an array?

also put a for loop in my saving bp same result