fixfile(r"%Output file%")
def fixfile(infile): # read file into a list, f = open(infile,"r") lines = readlines(f) f.close() # for each line, delete first column, write back f = open(infile,"w") for line in lines: linelist = line.split(",") lineout = ",".join(linelist[1:]) f.write(lineout) f.close()
There is a better tool for this in the Spatial Statistics Tools. It doesn't include any fields you do not want.Export Feature Attribute to ASCII
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.