Prism 6.0 User's Guide

Restoring the Data

Use the intrinsic varfile to bring values you have saved to a file back into Prism. Its syntax is:

varfile("filename")

where filename is the name of the file that contains the values you want to restore.


Note -

The varfile intrinsic is not available in MP Prism.


You can use the varfile intrinsic anywhere you could have used the original variable or expression that you saved to a file. For example, if you saved x:

varsave "x.var" x

then the command

print varfile("x.var")

is equivalent to

print x

Note that this allows you to save a variable's values, then print them during a later Prism session, without having a program loaded or running.