Saves an object of type CohortMethodData to a file.
Arguments
- cohortMethodData
An object of type CohortMethodData as generated using
getDbCohortMethodData()
.- file
The name of the file where the data will be written. If the file already exists it will be overwritten.