Need to find new error line following the timestamp

Hello All,

I have a text file with large number of error details, I need to extract the current error based on timestamp.

Whenever the file gets updated with a new error, We need to fetch the new error.

I have attached the sample text file. Could you please check and guideErrorlist.txt|attachment (29.3 KB)

1 Like

Hi
So if the error lies in the last line then
—first read the text file with Read text file activity and get the output with a variable of type string named strinput
—now use a assign activity to get the last line
stroutput = strinput.Split(Environment.NewLine.ToArray()).Last().ToString

Cheers @yogavalli

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.