Export of data to textfile
Export of data to textfile

I use Datatables to access my collection of ancient roadmaps. Data comes from a CSV and in the presented table are links (via a thumbnail) to the roadmap in a zoomable way (OpenSeadragon).
See: https://wbeulink.nl/publiek/zoomables
Works fine! Thanks to DataTables.
Now I like to compare cards. For instance: same cardnumber but different versions/years.
Selection and ordering possible in DataTables. But than I need an export of data from the selected maps to a file so this file is usable in OpenSeadragon to present selected cards in a special mode called CollectionMode.
Example of file with 3 items:
var tileSources = [
'/sometext/data from row1 columnx/data from row1 column-y.dzi',
'/sometext/data from row2 columnx/data from row2 column-y.dzi',
'/sometext/data from row3 columnx/data from row3 column-y.dzi'
];
var tileNames = [
'data from row1 column-z',
'data from row2 column-z',
'data from row3 column-z'
];
Until now I created such files as static datafiles.
See in use: https://wbeulink.nl/publiek/Kaarten/show.php?name=ANWB-50-Stadsplattegronden-1917
Not very flexible.
Is there a way to export such a formated file with buttons from DataTables.
Filename is fixed and file may/must be overwritten.
Thanks for any help in advance,
Willem