Preset saving to a file

How would that work❔ It's like saving and loading States❔