Workspace 6.21.5
WriteStringToFile

Writes a string of text to a file. Optionally, the operation can append to an existing file.

  • Default label: "Write string to file"
  • Member of plug-in: Built-in
  • Catalogue path: Builtin/String
Inputs:
File nameQString

StringQString

Append if file existsboolIf the file already exists, append to it rather than overwriting its contents.
End string with new lineboolIf enabled, the operation will append a newline to the end of the string that it writes. This can be used together with the Append if file exists input and a loop operation to continually write new lines to a file.
Use QSystemSemaphoreboolIf enabled, the operation will use the file system semaphore to ensure that writes can be done in parallel to the same file (the semaphore locks the file so that one thread can write while another waits).
Create pathbool

Create path if the directory does not already exist.