save events in a single file