Basically, I'm working on a script that will pull emp id numbers from users.csv (filtered to show just the empid).
Then search exuser.csv and if that number is in the exuser list, write it out. Then go back and open users.csv file again, and compare
the iterated terminated item to show the full emp name and ID again that was terminated. It works, but it only will print the last item...
Thanks in advance...
Here's a list of my 3 files I use to generate the info...
filen = "users.csv"
fob = d.readlines()
fob = [i.split(":") for i in fob]
fob = [i.split("\n") for i in fob]
filec = "exuser.csv"
r = open(filec, "r")
fob1 = r.readlines()
save = "term.csv"
for i in fob:
if i in fob1:
jake = "users.csv"
jake = d.readlines()
for j in jake:
if i in j:
doc = open(save, "a")
doc.writelines("\n"+"\n" + j + " is Terminated...")
ti = time.strftime("%x")
users.csv (list of user names and emp id)
exuser.csv (HR file with term users)
term.csv (resultant terminate emp doc)