© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
10 replies
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
Name:Age:DOB:Designation

With data its as follows. imaginary names:
Jon:30:99:Editor
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 ?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Getting a string from a text file and get the whole line containing the string
C#CC# / help
4y ago
❔ how to write strings to text file
C#CC# / help
4y ago
❔ Delete lines from a text file in UWP
C#CC# / help
4y ago
❔ Reading data from a text file
C#CC# / help
4y ago