So, an input cell after evaluation gives an
In[X] := str1 = ...
Out[X]:= ....
If I right click on the right edge of the Out[X]'s cell, and select Copy As > Plain text in the context menu, and then open a new text file in Emacs and paste it in.
Then I use str2 = Import[file, "String"]. What is the difference between str1 and str2? How do I get str2 without using an external file?
ExportString[]along withInputForm[]. – J. M.'s missing motivation Apr 01 '16 at 02:44InputForm[ExportString[str1]] === str2isTrue? If not, what do you mean exactly? – user13253 Apr 01 '16 at 03:51