empList="""201911007,James,Butt,Accounting,365;
201203008,Josephine,Darakjy,Marketing,365;"""
def createFiles():
f = open("empList.txt","w")
f.write(empList)
f.close
num=int(input('Enter Employee Number: '))
print('''Name:
Department:
Rate:
''')
How do I turn empList, which is a textfile, into a dictionary?
output should be
Enter Employee Number: 201911007
Name: James Butt
Department: Accounting
Rate: 365