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
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.