- 51Aspx源码必读.txt[1KB]
- Example.sln[2KB]
- from.jpg[11KB]
- 最新Asp.Net源码下载.url[123B]
源码介绍
源码参数
一、源码描述
C#最小的CSV文件解析器
环境:VS2022
二、功能介绍
用法如下:
using var sr = new StreamReader("test1.csv");
var parser = new SmallestCSV.SmallestCSVParser(sr);
// Set this to true if you don't care about preserving the quotes around fields.
// (Sometimes that is used to distinguish a null vs empty field.)
const bool removeEnclosingQuotes=false;
while (true) {
List<string>? columns = parser.ReadNextRow(removeEnclosingQuotes:removeEnclosingQuotes);
if (columns == null) {
Console.WriteLine("End of file reached");
break;
}
var prettyRow = System.Text.Json.JsonSerializer.Serialize(columns);
Console.WriteLine($"Read row: {prettyRow}");
}
三、注意事项
ctrl+F5运行即可。
下载记录(Only Recent 100)
用户名 | 推荐指数 | 下载时间 |
---|