LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write multiple events to text file

Hello, I need to add multiple comment to text file each time the user is clicking on add comment. using the simple code, it writes only one sentence and every click on add comment results in rewrite the new comment and delete the old one. 01.JPG

0 Kudos
Message 1 of 2
(198 Views)

open the file before the loop and keep it open.

(You are constantly re-open the file, and to append with your code you would need to move the file position to the end first before writing the new data)

 

NOTE: attaching pictures often does not tell the full story. Please attach your VI instead. Make sure to save fore previous, e.g. 2019)

0 Kudos
Message 2 of 2
(186 Views)