I have a C# application that needs to be run several thousand times.  Currently it precomputes a large table of constant values at the start of the run for reference.  As these values will be the same from run to run I would like to compute them independently in a simple python script and then just have the C# app import the file at the start of each run.
The table consists of a sorted 2D array (500-3000+ rows/columns) of simple (int x, double y) tuples.  I am looking for recommendations concerning the best/simplest way to store and then import this data.  For example, I could store the data in a text file like this "(x1,y1)|(x2,y2)|(x3,y3)|...|(xn,yn)"  This seems like a very ugly solution to a problem that seems to lend itself to a specific data structure or library I am currently unaware of.  Any suggestions would be welcome.
You may consider running IronPython - then you can pass values back and forth across C#/Python
Suggestions for passing large table between Python and C#