Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.2K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Export all variables of a notebook in a text file?

Posted 7 years ago

Hi, I would like to export all variables of a notebook in a text file, in two columns: name of variables and variable value. For instance,let's consider the notebook:

In[1]:= a = 20

b = 3

c = 10

Out[1]= 20

Out[2]= 3

Out[3]= 10

The file, let's name it "output.txt" should be as follows:

a = 20

b = 3

c = 10

Thank you in advance.

2 Replies
Posted 7 years ago
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard