Select to view content in your preferred language

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

1453
2
04-07-2017 09:49 AM
EthanLawson1
Deactivated User

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
JoshuaBixby
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

maherelayyan2
Emerging Contributor

You can export the table to txt in arcmap