[ADD] possibility to save enum to a file