What is the best way to save and remove arrays of ints from the RMS??

Is it just a matter of finding out the size of the array and using an if loop to save each cell of the array to the RMS one by one and doign the reverse to get all the data back?

Or do any of you have other good ideas to handle this?