Writes a Unicode string to a file.
FilePutW(filename, Unicode string)
(s) filename name of the file to write to.
(s) string Unicode string to write to the file.
(i) returns the number of bytes (not characters) written to the file.This will include a 2-byte Unicode header written to the beginning of the file.
If "filename" exists, it will be overwritten.
This function is like FilePut, except that "string" specifies a Unicode string.
Windows Vista/2008 and newer: This function may require an Administrator level account if dealing with files located in a protected directories: 'Program Files' and 'Windows'.
This function supports extended-length path names.
Filename = StrCat(DirScript(),"Unicode.txt") unicodestr = AskLine("First Name", "Please Enter your first name", "Bob", 1) data = FilePutW(filename, unicodestr) Message("Done", "Writing Unicode string to file") Exit