WriteFile
Usage:
WriteFile(Name)
Description:
The WriteFile command opens a file as write-only, and returns a handle to it for use with the file writing commands. All files are stored in the Data\Server Data\Script Files\ folder. Make sure to call CloseFile after you are finished with the file, to prevent memory leaks.
Name is the filename (e.g. "Data" or "MyFile.txt").
Example:
Function Main()
F = WriteFile("Test.txt")
WriteLine(F, "This text will be readable in Notepad")
CloseFile(F)
Return()
End Function
Comments (0)
You don't have permission to comment on this page.