StringToFile($file, $value)


Saves the string variable $s to a specified file. The file must be specified with the full path and file name. The value must be a string variable.


To read a string from a file, you can use the built-in function FileToString.


Example:

//Save the current date/time to a file
$s = Now
StringToFile("c:\files\script.dat", $s)

//Read string from file
$Date = FileToString("c:\files\script.dat")
MessageBox "Value is: {$Date}"