Writing to Text Files

Complete the following steps to write to a text file.

  1. Add a string control to the front panel window.

     Add  Find
  2. Enter into the string control the text that you want to write to the text file.
  3. Add the Write to Text File function to the block diagram.

     Add  Find
  4. Wire an absolute path to the file input of the Write to Text File function.
  5. Wire the string control to the text input of the Write to Text File function.
  6. Run the VI. The VI writes the text from the front panel window string control to the file wired to the file input.

After you write to a text file, read the file.

Refer to the Tab-Delimited Data project in the labview\examples\File IO\Spreadsheet\Tab-Delimited Data directory for an example of writing a text spreadsheet of simulated acquired data to a file.

 Open example  Find related examples