This VBA script for ArcMap shows an simple example of how to write user defined attribute field names in a feature class to a text file.
Public Sub DumpAttributeFieldNames() Open "c:/temp/fields.txt" For Output As #1
Dim pMxDoc As IMxDocument Dim pMap As IMap Dim pFLayer As IFeatureLayer Dim pFClass As IFeatureClass
Set pMxDoc = ThisDocument Set pMap = pMxDoc.FocusMap
'Get reference to layer in table of contents (0 is topmost layer) Set pFLayer = pMap.Layer(0) Set pFClass = pFLayer.FeatureClass
Dim f As Integer
For f = 0 To pFClass.Fields.FieldCount - 1 If pFClass.Fields.Field(f).Editable And pFClass.Fields.Field(f).Name <> pFClass.ShapeFieldName Then Print #1, pFClass.Fields.Field(f).Name End If Next f