{"id":23250736,"url":"https://github.com/changhuixu/delimiteddatafilehelper","last_synced_at":"2025-08-20T09:30:56.430Z","repository":{"id":65505906,"uuid":"86206206","full_name":"changhuixu/DelimitedDataFileHelper","owner":"changhuixu","description":"Reader and Writer for Delimited Data File (CSV, tab/pipe delimited file, etc...)","archived":false,"fork":false,"pushed_at":"2024-09-01T23:33:57.000Z","size":55,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-08T17:18:03.284Z","etag":null,"topics":["csv","delimited-data","pipe","reader","tab","writer"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/changhuixu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-26T04:01:44.000Z","updated_at":"2024-09-01T23:34:01.000Z","dependencies_parsed_at":"2023-01-26T13:40:10.300Z","dependency_job_id":null,"html_url":"https://github.com/changhuixu/DelimitedDataFileHelper","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2FDelimitedDataFileHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2FDelimitedDataFileHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2FDelimitedDataFileHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2FDelimitedDataFileHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/changhuixu","download_url":"https://codeload.github.com/changhuixu/DelimitedDataFileHelper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230408177,"owners_count":18220975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","delimited-data","pipe","reader","tab","writer"],"created_at":"2024-12-19T09:14:50.778Z","updated_at":"2024-12-19T09:14:51.247Z","avatar_url":"https://github.com/changhuixu.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Delimited Data File Helper\r\n\r\nReader and Writer for Delimited Data File (csv, tab/pipe delimited files)\r\n\r\n![ ](https://github.com/changhuixu/DelimitedDataFileHelper/workflows/CI/badge.svg)\r\n![NuGet](https://img.shields.io/nuget/v/uiowa.DelimitedDataHelper.svg?logo=nuget\u0026style=flat-square)\r\n[![Coverage Status](https://coveralls.io/repos/github/changhuixu/DelimitedDataFileHelper/badge.svg)](https://coveralls.io/github/changhuixu/DelimitedDataFileHelper)\r\n\r\nThis is a demo library for my learning and practice purposes.\r\n\r\n---\r\n\r\n1. Why need to have this little library?\r\n\r\n   There are many csv libraries out there, but I still prefer to write my own. First reason is that it is not so difficult to write a reader and writer. Second, most of my files don't need cumbersome settings for reader and writer. I just want things become easy and simple.\r\n\r\n2. Usage\r\n\r\n- By default, csv file reader and writer will read and write \"\" quoted entries.\r\n- By default, all delimited file reader will trim starting/ending white spaces of each entry.\r\n- By default, all delimited file writer will write a header row in the output file.\r\n\r\n```c#\r\nvar data = new CsvFile(\"filename.csv\").GetData\u003cContact\u003e();\r\ndata.WriteToCsvFile(\"output.csv\");\r\n```\r\n\r\nIf you want to skip first n rows,\r\n\r\n```c#\r\nvar data = new PipeDelimitedFile(\"input.csv\")\r\n        .SkipNRows(1)\r\n        .GetData\u003cContact\u003e()\r\n        .ToList();\r\n```\r\n\r\nIf you don't want to trim starting/ending white spaces of each entry,\r\n\r\n```c#\r\nvar data = new TabDelimitedFile(\"input.txt\")\r\n        .SkipNRows(1)\r\n        .GetData\u003cContact\u003e(new DelimitedFileReaderConfig(false))\r\n        .ToList();\r\n```\r\n\r\nIf you don't want to write header in the output file,\r\n\r\n```c#\r\nvar config = new CsvWriterConfig {WriteHeader = false};\r\ndata.WriteToCsvFile(\"output.csv\", config);\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanghuixu%2Fdelimiteddatafilehelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanghuixu%2Fdelimiteddatafilehelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanghuixu%2Fdelimiteddatafilehelper/lists"}