Hi,
I have a text file and I want to replace certain words with some other words.
How can that be done?
hey @ADITYA_MUKHERJEE
yourTextVar.Replace(“OrginalString”,“StringToBeReplaced”)
cheers
@ADITYA_MUKHERJEE Read the .txt file using Read Text file activity, the output will be string (Str).
Then, Do Str.Replace(“word to be replaced”,“new word”)
can you please elaborate?
Thanks, but can you please elaborate?
okay consider
sample_string = My name is Aditya
now Replaced_String = sample_string.Replace(“Aditya”,“Pradeep”)
you’ll get the output like this My name is Pradeep
@ADITYA_MUKHERJEE
cheers
no, not like that!
get output from Read Text and use assign activity like above mentioned!
Thanks…it worked.
cheers
@ADITYA_MUKHERJEE
