writing the given data from an event file into a pick file