Last active
December 20, 2016 02:17
-
-
Save exts/5a5ba330301502f9ce638b675bf6513b to your computer and use it in GitHub Desktop.
This file contains 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
namespace CvsProject | |
{ | |
internal class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var filename = "csvfile.csv"; | |
var reader = new CsvReader(filename); | |
reader.ParseContent(); | |
if(reader.CsvData.Count > 0) { | |
foreach(var line in reader.CsvData) { | |
WriteLine(String.Join(", ", line.ToArray())); | |
} | |
} | |
} | |
} | |
} | |
vs | |
//forcefully formatted | |
namespace CvsProject | |
{ | |
internal class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var filename = "csvfile.csv"; | |
var reader = new CsvReader(filename); | |
reader.ParseContent(); | |
if (reader.CsvData.Count > 0) | |
{ | |
foreach (var line in reader.CsvData) | |
{ | |
WriteLine(String.Join(", ", line.ToArray())); | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment