How to split with more than a char?
c#, split
Solution
You can pass in an array of chars.
string[] docArr = doc.Split(new char[]{' ', '\n', ','});
Problem
I want to split at spaces, newlines, and commas. Here is where I split with the space char: `` ``` StreamReader sr1 = new StreamReader("E:\\Lectures\\Fourth year\\2nd term\\IR\\Sections\\Files\\Files\\Document2.txt"); string doc = sr1.ReadLine(); string[] docArr = doc.Split(' '); ```