is there a good and free implementation of CSV parser available under some liberal licence? Some counterpart of SuperCSV for Java, perhaps a port?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
You can load a CSV file to DataTable.
Sample code -
Make sure you compile your project to x86 processor. It doesn't work for x64.
There's a nice implementation on CodeProject:
I've started using CSV Parser that is part of the CommonLibrary.NET.
It uses .NET 3.5, has an easy API, and convenient overloads/methods & lamda's for iterations.
I don't have any benchmarks for this one like above, but nice thing about this is that it's just one component of a library similar to Java Commons. So I also get a Command-line parser, Repository implementation among other things.
FileHelpers Open Source Library.
try filehelpers Work amazingly well. I am using it to parse a 100 MB file every day.
Have you tried the FileHelpers library? It's free, open source and can be used to parse CSV files.