How to make a text file list of attribute data with Python

04-07-2017 09:49 AM
New Contributor

I'm trying to use python to create a text file list of attributes from a shapefile. Specifically, the shapefile is of all the counties in a state, and I want to write a script that will output a text file containing a list of the counties by name, where each county name appears on a separate line. I'm realizing I'm really not so good at this coding stuff, so would someone be willing to give me a step-by-step of how to do this? Thanks! 

Tags (3)
0 Kudos
2 Replies
MVP Esteemed Contributor

If you are using ArcGIS 10.5, the Copy Rows built-in tool can export a feature class to a text file.  For earlier versions, and including 10.5, there is Table to Table

New Contributor II

You can export the table to txt in arcmap