This may be overkill for what you're trying to do but ... the 'Time' extension in NetLogo provides some easy-to-use and flexible utilities for storing, and retrieving time series (see 'time:ts-create'); including saving/storing them and various functions for manipulating them.