InFilePath | Where to find the file. |
StringVarName | Name of the string variable to populate. Optional. If variable does not already exist then one will be created. |
Note this assumes UTF-8 encoding. Support for flags should come in a future release.
Note also that this returns the contents of the file, so the second argument is optional.
% set MyString 1-2-3
1-2-3
% String2File $MyString temp.txt
% File2String temp.txt
1-2-3