Solved! Go to Solution.
Just for fun, while talking about efficiency, may as well make to as few lines as possible 🙂import arcpy fc = r'G:\Data\Geodatabase\Cedar_County.gdb\CADASTRAL\PARCEL' output = r'C:\Users\GIS\Desktop\textfile.txt' with open(output, 'w') as f: f.write('\n'.join(r.PID for r in arcpy.SearchCursor(fc))) print 'Created "%s"' %output
@ Wayne, I didn't mention the da module because she mentioned she was on version 10.0 still...but as Chris said, the new .da cursors are waaaay faster!
P.S. I need to limit my sugar intake while at work, feeling loopy...Happy scripting!
If only I could +10 you for using join()!