Apr-28-2017, 06:09 AM
Open the file and read it row by row. For each line do:
dict(zip(*iter(line.split(':'))))This will return a dictionary.
How to convert Text file contents into a dictionary.
|
|