Help: Code for pulling elements from multiline string and listing them

Hello, C# beginner (just assume I'm a five year old) here in need of help!

I have a text document like this:

Start 00010

Name: John, Phone Number: 1234567890 RTC = 2014-04-01 16:27:32

Name: Jack, Phone Number: 1111111111 RTC = 2014-04-01 16:27:34

Name: Joseph, Phone Number: 22222222222 RTC = 2014-04-01 16:27:44

GSM port received:

What I'm trying to do is have the console list out each person's name, followed by their phone number, followed by their RTC date/time.

I would know how to do this except each name (such as Jack) has the same bit of text before its corresponding phone number (the text "Phone Number") so I don't know how to differentiate between each person's respective phone number and RTC.

In summary, is there any code that will list out the each name, each person's phone number, and each RTC, then print it to console?

by assembly456 via /r/csharp

Leave a Reply