Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Get Line into a string... as a test using prepared string
- // Use a new char[] array of ( : ) to break
- // lines from into separate strings. Use "RemoveEmptyEntries"
- // to make sure no empty strings get put in the string[] array.
- //
- char[] delimiters = new char[] { ':' };
- string[] parts = value.Split(delimiters,StringSplitOptions.RemoveEmptyEntries);
- for (int i = 0; i < parts.Length; i++)
- {
- Console.WriteLine(parts[i]);
- }
- // parts[0] should contain E-Mail :
- // parts[1] should contain [email protected]
Advertisement
Add Comment
Please, Sign In to add comment