Function for exporting data to SNNS pattern files.