The infinitive of result
A to-infinitive can be used to express result; however, this use is more common in literary styles:
Do you want to live to be a hundred?
She arrived home to receive a letter from her bank.
Only + to-infinitive can express a disappointing result of an action:
I went back to the shop only to find that it had closed for good.
He got his car fixed only to damage it again.