Use an SD card to save data and operate on files. Packaged for the leo build system.
arduino.cc/en/Reference/SD