Edit

WriteToTempFile (text)

Result type:  string (a filesystem path)

Definition:  Creates a new text file in the temp directory and writes the given text to it. Return value is the path to the temp file.

Availability:  MWScript scripts in MoneyWorks Gold v7.1.5 and later

See Also:

File_Close: File functions for creating/reading/writing text files

File_GetLength: File length in bytes

File_GetMark: Get current read/write position

File_Move: Rename/move a file

File_Open: Open a file

File_Path: Get the full path of an open file

File_Read: Read text from current position

File_ReadLine: Read to end of line from current position

File_SetMark: Set Current read/write position

File_Write: Write text at current position