3

Take this code :

    nomFichier = 
  "C:\\Users\\Me\\Dropbox\\testFile.wdx";

<<  nomFichier;
<<  "C:\\Users\\Me\\Dropbox\\testFile.wdx";

The first line works whereas the second one doesn't : why ?

The error is :

Get::noopen: Cannot open nomFichier.
StarBucK
  • 2,164
  • 1
  • 10
  • 33

1 Answers1

5

According to the documentation:

<<"name" is equivalent to <<name. The double quotes can be omitted if 
the name is of the form specified in "Operator Input Forms".

So, << treats the literal expression as a file name.

Get[expression]

works, but the << form even ignores Evaluate.

John Doty
  • 13,712
  • 1
  • 22
  • 42