首页 [ 课程设计 ] C#最小的CSV文件解析器
一键分享

C#最小的CSV文件解析器

  • 免费

2024-04-24 15:38:55

C#最小的CSV文件解析器

  • 源码类型: B/S
  • 开发环境: VS2022 + 无数据库
  • 开发语言: C#
  • 标签: 文件解析器
  • 评分:
收藏 3 次|关注 76 次|下载 0 次

免费


交付物: 源码包
    商家已实名认证
  • 分享者:coder***
  • 访问次数:   6503 次
  • 源码数量:   758 套
  • 通过比率:   93%
  • 活跃于:   三个月前
  • TEL:   17*******71
  • 最新IP属地:海口市
  • 微信扫码咨询
.net
  • 51Aspx源码必读.txt[1KB]
  • Example.sln[2KB]
  • from.jpg[11KB]
  • 最新Asp.Net源码下载.url[123B]

源码介绍

源码参数

  • 源码类别:【课程设计】
  • 源码类型:B/S
  • 适合人群: 菜鸟
  • 授权类型:免费版
  • 开发语言:C#
  • 数据库:无数据库
  • 源码大小:38.3MB
  • 相关网址: 【免费浏览】
  • 源码指数:
  • 完整度:
  • 1.jpg
  • 2.jpg
  • 3.jpg
  • 1.jpg
  • 2.jpg
  • 3.jpg
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel
  • Aspx.Query.CodeImageQueryModel

一、源码描述

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)

用户名 推荐指数 下载时间

源码评论

单击更换

评论列表

全部评论
  • 暂无评论 …

最近更新

      下载排行