I have several .mx files containing data saved to disk via DumpSave. I load a list of these files in my folder as
SetDirectory[NotebookDirectory[]];
files = FileNames[All, ".\\data", Infinity];
Now I was trying to load them via
<< files[[1]]
or
<< ToExpression[files[[1]]]
or even
<< Evaluate[ToExpression[files[[1]]]]
none of which have worked. How can I load an .mx file using a string of its path?
files = FileNames["*.mx"]; Get[files[[1]]]– flinty Aug 13 '20 at 11:44Getinsead of the shorthand<<, which treats its RHS as a string – Szabolcs Aug 13 '20 at 12:10