How to remove unnecessary blank line/ space from txt file directly?

	<ul class="breadcrumb" itemtype="https://Demo/BreadcrumbList">

These are the blank lines

@smrutismita.samal

You can read the text file…then use the below and writw back to excel

This is to be used in assign activity

str = System.Text.RegularExpressions.Regex.Replace(str,"\s{2,}"," ")

Here str is the output of read text file

1 Like