Hello How to replace text in text file

Hey,

You can user String.Format method.

For example: SampleString = Hi {0} , Welcome to {1}.

In Bot: String.Format(SampleString,“Copy_Writes”,“UiPath”)

Output : Hi Copy_Writes, Welcome to UiPath.

Give index value in your text whereever you wants specific word, and extract word from excel it will replace it in the string.

Let me know in case of any concern.

Regards,
Sahil

1 Like