LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add text into specify position of recent text file

Solved!
Go to solution
Hi All I would like to know how to add text into specify position of recent text file which expected result after added text the original text still keep the same from previous. BR Bee
0 Kudos
Message 1 of 3
(946 Views)

Hi weerapong,

 


@weerapong wrote:
how to add text into specify position of recent text file which expected result after added text the original text still keep the same from previous.

  1. Read the whole textfile as string.
  2. Split the string at your "specify position".
  3. Concat a new string from string before split, "added text", and string after split.
  4. Save the new whole string to a textfile.
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(941 Views)
Solution
Accepted by topic author weerapong

Hi GerdW

 

Thank you for your suggestion.

It can work well now.

 

 

BR

Bee

0 Kudos
Message 3 of 3
(874 Views)