The Goodbye Girl (1977)
The Goodbye Girl is a 1977 American romantic comedy-drama film. Directed by Herbert Ross, the film stars Richard Dreyfuss, Marsha Mason, Quinn Cummings, and Paul Benedict. The original screenplay by Neil Simon centers on an odd trio—a struggling actor who has sublet a Manhattan apartment from a friend, the current occupant (his friend's ex-girlfriend, who has just been abandoned) and her precocious young daughter.
More at Wikipedia.