I had this huge list of providers ip address ranges with additional info about the total number of addresses and the name of the provider.
It pretty much looks like this:
2.160.0.0,2.175.255.255,1048576,28/09/10,Telekom Deutschland GmbH
2.200.0.0,2.207.255.255,524288,18/11/10,Vodafone GmbH
To feed it to another program I had to convert it to a simple text file that contains a basic list of ip ranges. Like this:
2.160.0.0-2.175.255.255
2.200.0.0-2.207.255.255
So since the file is really huge the question would be:
How can I convert this kind of csv table into a txt based ip range list, without loading the whole file into the RAM at the same time?