Hi,
I think you might want to try looking at things more positively. For example you’ve known your friend for a while it seems, do you really think he would try to hurt you? It’s more likely that he just wanted to be honest, because that’s what real friends do; be honest with each other. Also consider that when he moved he may have also been lonely and since you know how that feels, you can relate and be happy for him for finding someone.
It’s sometimes difficult but things keep changing, nothing stays the same forever. But this is a good thing; it means you and your situation can change too! It’s all about how you look at things, a shift in perspective combined with effort towards your goals and you’ll notice things start changing for you too.
As for feeling lonely, you don’t need to date to connect with people, everybody is the same deep down, you can find people to relate to even just by posting here. =]