Example Code

Search and Replace a Word in a Text File Using LabVIEW

Code and Documents

Attachment

This VI searches a text file for a specified word and replaces all instances of the word with another word. Before running the VI, specify the path of the text file, the word to change, and the word to replace it with. Running the VI with empty word and replacement will display the current content of the file.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors