Get only first line of email and assign to string

Hello,

I currently only need the first line of an email which contains login information.
How can I assign it to a string?

what do you mean first line, first line of what?
@dvn

The email message that i received will contain many lines of text sometimes, but this one I only want the first line.

okay get that email message as a string type and
assign it like this
arrayVar = emailStr.Split(Environment.Newline.ToCharArray)
now to get the first line you can print it like this arrayVar(0)
Cheers
@dvn

1 Like