Remove some line from Text File

Hi,

How about the following?

keywords = {"Amount","Country"}

Then

String.Join(vbcrlf,yourString.Split(vbcrlf.ToCharArray,StringSplitoptions.RemoveEmptyEntries).Where(Function(s)keywords.Any(Function(k) s.StartsWith(k))))

Regards,

1 Like