How to copy text from Notepad file from specific location

I need to copy text from Notepad file from 2nd Line and from after Pipeline separator.
can anyone please suggest.

from the attached Notepad file i need to copy 422 text after first Line Separator.Pegged Order.txt (881 Bytes)

1 Like

here you go with a xaml (10.0 KB)
Cheers @nm09011985

Hello Palaniyappan,
thnx for reply.
But that text 422 will always change as per request, so I need to fetch any number comes there in between that Separator.

1 Like

here you go (10.0 KB)

Cheers @nm09011985

Hello Palaniyappan,
from this solution i get whole Notepad file data, but I need only that number from second line.

Read Noteoad file.7z (59 Bytes)

did the last attached xaml worked
kindly try this and let know for any queries or clarification
Cheers @nm09011985

Yes that works but giving the OP for entire Notepad file data, not for single number (Like 422).

i didnt get that buddy
what was the issue

I have attached the Notepad file and i Need to copy only the number 422 from second line from initial and store into variable, this 422 number will always change as per request but the location will be the same and from that same location I need to copy for next request also.

Pegged Order.txt (881 Bytes)

After you get the value in the second line, you should do text manipulation to get 422.

i think this will works


str_delimiter = Split(str_input.ToString,system.Text.RegularExpressions.Regex.Matches(str_input,“[\d]+[\W]+”)(0).Tostring)(1).ToString

where str_delimiter is a string variable with value as 422| and it will take any number if replaced

Cheers @nm09011985

[quote=“confuse_coder, post:12, topic:172357”]

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