C#C
C#4y ago
Surihia

✅ Getting a string value from a set of strings stored in a text file

I have a text file which has strings written in this following pattern:
Name:Age:DOB:Designation

With data its as follows. imaginary names:
Jon:30:99:Editor

These strings are all in each line and I want to get the Name, Age, DOB, and Designation strings as separate strings so that I can use them as variables in my program to parse.
How do I go about in doing this ?
Was this page helpful?