/ Published in: C#

found this on a forum comment thought it would be useful
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
string line; //Assume that is a tab, if space change to " ".ToCharArray() char[] splitChar = "\t".ToCharArray(); while(null != (line = reader.ReadLine)) { string[] split = line.Split(splitChar); int bit= int.Parse(split[0]); string name = split[1]; string description = split[2]; //Do something with parse here? } reader.Dispose();
Comments
