Complex sentence: He types up a resignation letter, and excitedly finds the magazine at a newsstand, only to find that the ending has been changed.
Split into simpler sentences: He types up a resignation letter, and excitedly finds the magazine at a newsstand. However, he finds that the ending has been changed.