Remove specific lines

there is a file
i want to remove that lines

the lines can be exist anywhere in that document.there is no specific location of lines in that document


First use Read Text activity to read that file and will give you output as text. And then use replace method to replace that particular text.

     yourString.Replace("Old Text","New Text")

i dont want to replace
i want to remove


Replace that text with empty quotes then it will be removed.

 yourString.Replace("Removed text","") 

And then use Write Text File activity to write into it.

1 Like

it will replace with space isnt it?

could u plz share workflow?


There is no space in between quotes. Here, we are replacing with empty value.

removed text contain column date
which keeps on changing


Then first find some constant text like starting and ending string and then replace that text with empty value.