Hello, I have made a small application, and I would like to add proxy support.. I have some socks4/5 in a txt file, could the program read the txt file and connect with proxy to IRC?

I have only made it to connect to IRC, so what I actually need is a code or something to make it connect with proxy.

Sorry I am beginner.. thanks.