Fail Safe Data Storage

I am looking for a mechanism to save the data type (typically a cluster of arrays and strings) which will represent the basic record for a datalog file