Table Of Contents

Write to Text File (G Dataflow)

Last Modified: January 9, 2017

Writes a string or an array of strings as lines to a file.

Programming Patterns


Custom message in the title bar of the file dialog box that appears when you do not wire a value to file path.


file path

The file to which you want to write data.

This input can be a reference to a file or an absolute file path. In both cases, the node creates the specified file if it does not already exist. The node opens the specified file without requiring you to call Open/Create/Replace File first.

Default: No value — Displays a file dialog box that prompts you to select a file.



String or array of strings that this node writes to a file.


error in

Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

Default: No error


refnum out

A reference to the file that this node uses.



A Boolean value that indicates whether the user cancelled the dialog box that appears if no input file was wired to this node.

True The dialog box was cancelled.
False The dialog box was not cancelled, or the dialog box did not appear.

Default: False


error out

Error information. The node produces this output according to standard error behavior.

Where This Node Can Run:

Desktop OS: Windows

FPGA: All devices (only within an Optimized FPGA VI)

Recently Viewed Topics