This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string[,] LoadCsv(string filename) | |
{ | |
//get the file text | |
string text = System.IO.File.ReadAllText(filename); | |
//split into Lines | |
text = text.Replace("\n", "\r"); | |
string[] lines = text.Split(new char[] { '\r' }, StringSplitOptions.RemoveEmptyEntries); | |
// to get how many rows and columns |
OlderNewer