- Home /
Reading from a .txt file until a certain character is detected
I am making a random name generator of sorts, but in the list of names I have, each name is followed by a some numbers. Is there a way that I can cut out anything read after a space character is detected?
e.g
SMITH 1.006 1.006 1
Comment
Answer by SnotE101 · Oct 03, 2014 at 07:41 PM
Try string.split. Check it out here from the source. http://msdn.microsoft.com/en-us/library/tabh47cf(v=vs.110).aspx
-Good luck
Your answer
Follow this Question
Related Questions
How to put each line of a text file into a separate sring c# 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Write and read text files with c# 1 Answer
A little bit of help is needed!!! 1 Answer