The Dying Wife Writing a Book, Husband Seeking a Cure: Possibly 'The Notebook' (2004)
The closest match is The Notebook (2004) (Ryan Gosling, Rachel McAdams), though with key differences:
- Allie (McAdams) has a neurodegenerative illness (implied Alzheimer's/dementia), not explicitly cancer.
- She writes/reads their story in a notebook—preserving memories as her mind fades.
- Noah (Gosling) devotes his life to caring for her, reading to her daily, hoping to reach her—not a frantic search for a medical cure, but a stubborn, daily act of love.
If the film you recall has a more explicit "husband researches cures" plot, or the wife is actively writing a novel while dying of cancer, please share more details: era, actors, specific scenes, tone (tearjerker vs. thriller). That will help distinguish it from The Notebook's similar but distinct narrative.