ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String problem How to delete and replace line

Could someone please point me to an example of how to delete
and replace a specific line in a text file? I use several colums that store
settings
and everything works fine except I can't figure out how to delete a specific
line
and replace it. I can keep adding settings but can't delete and replace.
Everything I try results in either adding a new line or just deleting a line
or a currupted file.

Thanks
Tom


0 Kudos
Message 1 of 3
(5,938 Views)
0 Kudos
Message 2 of 3
(5,936 Views)

Use the Configuration File VIs to read/write settings to file; much easier.

 

write config demo.png

0 Kudos
Message 3 of 3
(5,929 Views)