String manipulation text file

Hello community,

I have tried a lot of the posted solutions regarding string manipulation, but i could not find an answer.

I have a string which i am inserting into a text file to see the composition of the string.

It looks like this:

I want to remove the empty lines from the text file, and then save each line as a string array.
so on the first line the string1[0] is= “123400318”
On the second line string2[0]=“Donald”, string2[1]=“Duck”, string2[2]=“Duckson”… etc.

Can someone help me out?

Thank you

Hi @anon53238024

can you share the same text file here so that it will be easy to work on it …

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

Hi,

Can you try the following sample?

Sample20200725.zip (15.9 KB)

Regards,

Hi @Pratik_Wavhal,

Of course! temp.txt (626 Bytes)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.