I have text file that I am generating that looks like this:
ipaddress,host
ipaddress,host
ipaddress,host
ipaddress,host
ipaddress,host
...
How could i read through this file and store each line as a key value pair?
ex.
array{
[ipaddress]=>[host]
[ipaddress]=>[host]
[ipaddress]=>[host]
..........
}