Workspace 6.21.5
|
Writes a string of text to a file. Optionally, the operation can append to an existing file.
Inputs: | |||
---|---|---|---|
File name | QString | ||
String | QString | ||
Append if file exists | bool | If the file already exists, append to it rather than overwriting its contents. | |
End string with new line | bool | If 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 QSystemSemaphore | bool | If 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 path | bool | Create path if the directory does not already exist. |