-event to file, file to event conversion