How can I read a text file containing
example:
qtsdatacenter.aws.edu 128.60.3.2 A
www.ibm.com 64.42.3.4 A
www.google.edu 8.7.45.2 A
Into a Dictionary like this:
tsdictionary = { "qtsdatacenter.aws.com" : "qtsdatacenter.aws.edu 128.60.3.2 A",
"www.ibm.com" : "www.ibm.com 64.42.3.4 A",
"www.google.edu" : "www.google.edu 8.7.45.2 A"
}
Where the first string read before a space also becomes the key.