Writes preset to path through AtomicFile. Entries come in a fixed order with a fixed timestamp and compression level, and no extra field or comment, so the same preset always gives the same bytes.
Writes preset to output as write does; output is not closed.