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 guide (29.3 KB)
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
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.