Add text in every line in text file

I want to add text in the last word in every line

From picture below : I want to add |office|wfh in every line

image text.txt (59 Bytes)

Please guide me about it.

Hello @fairymemay :wave:

Here’s a sample workflow for you to try: Fairymemay_Forum.xaml (6.6 KB)

Let me know if you are facing any issues!

Cheers!

1 Like

Main.xaml (10.7 KB)
Here is the sample workflow

@ImPratham45 If I want add text in the last word except row1.
Please suggest me.

Use Counter by assign before For each say Counter=1
then
If counter=1
then skip else
add string and add counter +1

@ImPratham45 Is that correct?

image

It error in assign as below.

image

Dont Put both condition in IF use first If for Counter only

@ImPratham45 Right?

Yea try this
You forgot IF for blank i.e. “”

@ImPratham45 I don’t understand IF for blank i.e. “”

The condition which you have mentioned above

@ImPratham45 Right?
image

Yes Right
put it inside else block of first IF i.e. Counter IF

@ImPratham45 Sorry. but I don’t understand.
Please guide me.

If Counter=1

Then
Increment Counter=Counter+1

else

If Item.Tostring.Trim=“”

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