0
$\begingroup$

I am trying to solve my previous problem posted here but when reading the documentation of FileTemplate, I find unclear information about the file object.txt used in

t = FileTemplate["Examples/String/object.txt"]

What is the contents of this file?

$\endgroup$
3
$\begingroup$

Since FileTemplate by default has Path -> $TemplatePath, we should change $Path accordingly:

Block[{$Path = $TemplatePath}, FindFile["Examples/String/object.txt"]]
"C:\Program Files\Wolfram Research\Mathematica\10.4\SystemFiles\Components\Templating\Resources\TemplateLoader\Examples\String\object.txt"
FilePrint@%

This is a `attribute` `object`.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.