This seems like a simple question due to lack of experience, but I can't seem to find an answer through searching. I am trying to read back a symbol from a
DumpSave[NotebookDirectory <> "mySymbol.mx", mySymbol]
Here, using NotebookDirectory got my file in the current directory like I wanted, but when I try to use either of the following with
Get, it fails:
<< NotebookDirectory <> "DiscreteTreatmentRegion.mx"; << Evaluate[NotebookDirectory <> "Mysymbol.mx"];
It seems to me like it is not evaluating the filename correctly, since since it gives the message 'Cannot open ("NotebookDirectory").'
How can I get this to work? Or is there a better way to do what I am trying to do.