I was following this article
And I came up with this code:
string FileName = \"C:\\\\test.txt\"; using (StreamReader sr = new StreamReader(FileNam
This worked for me.
using System.IO; // string readStr = File.ReadAllText(file.FullName); string[] read = readStr.Split(new char[] {'\r','\n'},StringSplitOptions.RemoveEmptyEntries);