Something is wrong, but we need to know what is being written to the file before a solution will present itself.