From my experience, you know something is missing from your life and believe that having a partner would fill that hole. But you could also fill that whole by actualizing yourself and becoming a better person.
After my first "breakup" (in quotes because we never made it official) I was down in the dumps for the next five months, which impacted my success in school and my creativity. Once I finally snapped out of it I got a lot more out of life, still felt lonely on occasion. But then the event I described earlier in the topic happened, which was a positive experience overall despite it not leading anywhere, and now I'm living my own life and feeling very good about it.
And also. You'll have more success at relationships being self-confident and happy than just lonely. Both my almost-relationships were instigated by the other person, which meant they saw something in me. The first was when I was at a very high place mentally, the second was me becoming hyperactive due to excitement.