Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make a config txt file on python

#No library mode
file = open("abc.txt", 'r')
content = file.read()
paths = content.split("
") 
for x in xs:
    print x.split(" = ")[1]
    
x_list = []
x_dict = {}
for path in paths:
    p = path.split(" = ")
    path_list.append(p)[1]
    path_dict[p[0]] = p[1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #config #txt #file #python
ADD COMMENT
Topic
Name
1+7 =