There's been some recent discussion about how to write geometric data out to external data sources. Here is the most basic on both ends: xyz coordinates written to a .txt file.
Of course, you may want to do some fine tuning of this kind of thing. Here is a version that cleans up the data, reducing significant digits and other formating.