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$
0

1 Answer 1

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 and acknowledge you have read our privacy policy.

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