0
$\begingroup$

This question already has an answer here:

I have saved a number of variables via DumpSave to a MX file called file.mx.

To read the file I have used: Get["file.mx"].

How can I find out what the variable names are that are contained in file.mx inside of a notebook file which already contains other variables?

I have read the I can call e.g. Names["Global`*"], but then all variables are listed.

$\endgroup$

marked as duplicate by Mr.Wizard May 21 '17 at 12:40

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ Can you create a new notebook with another kernel and use Get["file.mx"] and Names["Global`*"] there? $\endgroup$ – Shadowray May 21 '17 at 11:45
  • 1
    $\begingroup$ Somewhat related: How to find variables set through Get? and DumpSave for the forgetful. $\endgroup$ – Shadowray May 21 '17 at 11:49
  • $\begingroup$ Use @Shadowray suggestion, just compare Names["Global`*"] before and after Get. $\endgroup$ – Kuba May 21 '17 at 12:14

Browse other questions tagged or ask your own question.