Hello. My name is***** will assist you with your question.
I don't see subnet addresses in your first text file. Or even address destinations in the 2nd file. It looks like what you're looking for is the first file to have an IP address like 192.168.1.10/128 8080 e0
That would represent the IP address, subnet mask, the port number, and the interface name. It doesn't appear enough information in your first file to route based on the 2nd file. And then in the 2nd file I would think that what you're looking for is IP addresses and subnet masks.
Hi, my name is ***** ***** I can help you out if you still need help. But I don't see the program or text files attached to this message. Did you provide them a different way?