Page 1 of 1

Structure of CSV files

PostPosted: Sun Jul 15, 2007 3:26 am
by omry
Hi all,
can anyone describe the structure of the CSV files?
I am thinking about making my IP2C library (firestats dot cc slash wiki slash ip2c) [curse the urls policy!] support this database, but I would need to understand the structure of the CSV before I can convert it to my optimized binary format.


PostPosted: Sat Feb 09, 2008 7:16 pm
by JB
assuming you understanbd how to read CSV in general.

the first two columns represent a range of IP addresses,
I'm guessing it's a*16777216 + b*65536 +c*256 +d (where a.b.c.d is an ip address)
the third column looks like a national domain but isn't (GB is used where UK should
be etc...) the fourth and fifth should be self-explanatory,