Text writer

[io/file/Text writer]

Writes the input text to the specified path as a text file.

Input ports

  • path: string

    Receives the path of the file to write the specified text to. Example: "/home/user1/dir1/foo.txt" (To keep the application portable use "/" as path separator.)

  • text: string

    Receives the text to write to the specified file. (Will overwrite existing content of the file if exists!) Example: "Hello World"

Output ports

  • bounced: string

    Sends synced parameters if operation has failed. Example: { path: "/home/user1/dir1/foo.txt", text: "Hello World" }

  • written: null

    Sends synced parameters if operation has succeeded.. Example: { path: "/home/user1/dir1/foo.txt", text: "Hello World" }

  • error: {"error": string}

    Sends error information if the operation has failed. Example: { "error": "Error: ENOENT: no such file or directory, open '/home/user1/dir1/foo.txt'" }

Last updated