Easiest would be to just write a datalog file using the 2D Array of Clusters as datalog type (See attached example).
Alternatively, you can just flatten your array to a string before writing, and unflatten from string after reading.
Do you need to be able to read with other applications?
In this case, a possibility would be to "flatten to XML" and "unflatten from XML".