Question: using System; namespace Substring { class Program { static void Main(string[] args) { //Parse the raw feed into variables using the following template: // First
using System;
namespace Substring { class Program { static void Main(string[] args) { //Parse the raw feed into variables using the following template: // First Name|Last Name|Age|Height|Weight string rawFeed = "Philip|Marlowe|42|6'0|190"; string firstName = rawFeed.Substring(0,rawFeed.IndexOf("|")); Console.WriteLine("First Name: " + firstName); } } }
2. Add code to parse out all of the information from the raw feed in accordance with the template in the comments. The first one is done for you.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
