jdrvar

Write to file

Discussion created by jdrvar on Sep 30, 2013
Latest reply on Sep 30, 2013 by daveb1034
All,

I want to select a Polygon within ArcMap, then write a .CSV file, with text and selected attributes. The following script creates the .CSV file and adds the SUBDIVISION: P.B. text. But, I want the text to read SUBDIVISION: NAME P.B. 100-80. NAME, PLATBOOK, and PLATPAGE are string fields. I am unsure how to call and write attributes from selected fieds to a .CSV file.

f = open("C:\\Working\\Python\\Final.csv", "w")
f.write("SUBDIVISION: " + "P.B.")
f.close()


Thanks

Outcomes