Add MODE_TRUNCATE_WRITE