I've got some code which generates a series with coefficients that are a rather complicated expressions of Greek letters with subscripts. I want to store some of these coefficients for future use, rather than computing them each time I run my program.
What I would like, is to store each coefficient as if I had used the "Copy As" -> "Input Text" functionality which you get when right clicking on a specific cell. And I would like to do this via the Export[] function rather than doing it for each coefficient manually. Does anyone know how to do this so that, in particular, the Greek letters are exported as $\backslash[\text{Rho}]$ as opposed to $\rho$. "Copy As" -> "Input Text" does this, but Export[] gives the formatted $\rho$, which causes problems on import.
CopyToClipboard
I think it does what you want. You should note that there are functions for saving expressions for furture usesuch asPut
andSave
. $\endgroup$PutAppend
and thenReadList
gives me exactly what I want. $\endgroup$Put
/PutAppend
to write to file, and then some time later, when I want the contents of the the file, I useReadList
. This provides (as far as I can tell) an acceptable solution for me. $\endgroup$