CDK-572. Add write mode

I think I would prefer just "overwrite" even though it doesn't match the "appendTo" and "writeTo" methods. That's how we would say it in plain English and I think it's clear that the methods are related without adding the "to".