Open the file for appending and create if it doesn't exist.
Implemented win and fail stats.