Hi
hope these steps would help you on this
–use a READ TEXT FILE activity and pass the file path of the text file
and get the output with a variable of type string named str_input
–now use a ASSIGN activity and mention like this str_output = String.Join(Environment.Newline,Str_input.Split(Environment.Newline.ToArray()).AsEnumerable().Skip(1).ToArray())
Maybe you can resolve my other issue. When i want to read text file with a bigger size (500Ko-600Ko) i have an error message like that :
Error message : Impossible to recover the result of the task execution. Maybe, the message is so long to be treated"
This error message come when i launch my robot with debugging mode and with UiPath Robot (attended robot). Do you know why and how i can resolve this ?
Hi,
I am doing screen scraping from SAP and I will get below kind of text for each scraping so my requirement is I have to remove first two lines and also the line which has only ‘*’ with out any string/text.
Hi,
Thanks for your reply’s.
my requirement is solved with below code.
StringOP = VFreeText.Replace(“*”,“”).ToString.
StringOP = String.Join(Environment.Newline,StringOP.Split(Environment.Newline.ToArray()).AsEnumerable().Skip(1).ToArray().Skip(2).ToArray())
Hi,
As I told the data is from SAP screen scrapping and I can not share. I am scrapping data into a variable and passing variable to Text scope.
The text is already shared in above post but small correction is replace bullet(.) with ''. Probably this was auto converted( to bullet) when I copied from my system to this blog.