Write menu to file