[GIS] How to export selected records to a .txt file

arcgis-10.0arcpypython

I am working on a project where I need to create a tool/method to export the attributes of selected features to a .txt file. I have point features containing addressing information, and the tool would need to export the attributes from one field to a text file.

I have been looking through the ArcPy documentation and found Copy Rows in the Tables Toolset – it can export selected features, but the only output option is exporting to a database table. It seems like this should be a simple task, since exporting to a .txt file is one of the options when manually exporting from a table.

The ultimate goal here is to create a tool and publish it as a geoprocessing service to be used in a web application. I would prefer to find a solution using Python, which I am just beginning to work with and have a little familiarity.

I am currently working with ArcGIS Desktop 10 SP1.