Feeling Stuck

Sooo.. I recently found out that my bf of 3 years cheated and got someone else pregnant or he says he doesn't know if it's his.. I was so hurt because we have been trying for so long and we haven't had any luck and he turns around and gets someone else pregnant.. Has anyone else been through this?! I just don't know what to do..