Trying to copy via a python script 4 text files to multiple directories that are shown in a text file ? I'm just learning python so help would be appreciated, listed below is what I have done so far but it doesn't work
import os
import shutil
import string
txtfile = [r"S:\Offences\state_jul.txt","S:\Offences\state_jun.txt","S:\Offences\state_apr.txt"]
f = open(r"D:\Scripts\Python\ArcReader_Servers.txt","r")
if f:
filepath = f.readline()
while filepath:
for i in range(len(txtfile)):
filename = txtfile[i]
print filename
shutil.copy2(filename,filepath)
filepath = f.readline()
print filepath