Store the internal buffer FILEBUFFER into a file in the FlashRAM. The file is given by mode, submode (category) and the sequencial number. The kind of data (binary or text) is determined from the selected mode.