WriteFile
This command will write a file to the server hard drive and can be used from both the Thin client mode and Mobile client mode.
Group: Server Extensions
Syntax: [bOK = ] Server.WriteFile(sFileName, vData, bOverwrite)
bOK (Boolean) Optional – returns True or False for the success of the command
sFileName (String) is the path and file name for the file being created or overwritten.
vData (Variant) the contents of the file which can be either a string or byte array
bOverwrite (Boolean) set to True, the server will overwrite an existing file, False will return a failure because the file already existed
Example:
Dim bOK As Boolean
Dim sData As String
Dim sPath As String
sPath = "C:\MyFile.txt"
sData = "Sample Text"
bOK = Server.WriteFile(sPath, sData, True)