set file pointer to start, overwrite existing data; or create file if does not exist
const WRITE_NEW = 'c';