This question already has an answer here:
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
str2? How do I get
str2 without using an external file?