appendEventToFile

Appends a single event to the tracking file (useful for large datasets).