FixedWidth.FileParser 4.0.0

dotnet add package FixedWidth.FileParser --version 4.0.0                
NuGet\Install-Package FixedWidth.FileParser -Version 4.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FixedWidth.FileParser" Version="4.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FixedWidth.FileParser --version 4.0.0                
#r "nuget: FixedWidth.FileParser, 4.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FixedWidth.FileParser as a Cake Addin
#addin nuget:?package=FixedWidth.FileParser&version=4.0.0

// Install FixedWidth.FileParser as a Cake Tool
#tool nuget:?package=FixedWidth.FileParser&version=4.0.0                

FileUtil.Core v4.0.0

NuGet version License: MIT Master-Build GitHub Release Master-CodeQL .Net 8.0


.Net Library to read from fixed width or delimiter separated file using strongly typed objects.

Fixed Width or Delimiter Separated File

What is Fixed width or Delimiter separated text files?

Fixed width or Delimiter separeted text file is a file that has a specific format which allows for the manipulation of textual information in an organized fashion.
Each row contains one record of information; each record can contain multiple pieces of data fields or columns. The data columns are separated by any character you specify called the delimiter. All rows in the file follow a consistent format and should be with the same number of data columns. Data columns could be empty with no value.

**CASE 1 😗* Simple pipe '|' separated Delimeter File is shown below (this could even be comma ',' separated CSV)

|Mr|Jack Marias|Male|London|Active|||
|Dr|Bony Stringer|Male|New Jersey|Active||Paid|
|Mrs|Mary Ward|Female||Active|||
|Mr|Robert Webb|||Active|||

CASE 2: The above file could have a header and a footer. In which case, each row has an identifier called as Line head to determine the type of row in the file.

|H|Department|Jun 23 2016  7:01PM|
|D||Jack Marias|Male|London|Active|||
|D|Dr|Bony Stringer|Male|New Jersey|Active||Paid|
|D|Mrs|Mary Ward|Female||Active|||
|D|Mr|Robert Webb|||Active|||
|F|4 Records|

FileUtil can be used to parse both of the shown formats above. The line heads and data column delimiters (separators) are configurable as required per use case.

Getting Started?

i. Installation

Install the latest version of FileUtil nuget package with command below.

NuGet\Install-Package FixedWidth.FileParser 

ii. Developer Guide

Please read Developer Guide for details on how to implement FileUtil.Core in your project.

Support

If you are having problems, please let me know by raising a new issue.

License

This project is licensed with the MIT license.

Version History

The main branch is now on .NET 9.0. The following previous versions are available: | Version | Release Notes | | -------- | --------| | v4.0.0 | Notes | | v3.0.0 | Notes | | v2.0.0 | Notes | | v1.0.0 | Notes |

Credits

Thank you for reading. Please fork, explore, contribute and report. Happy Coding !! 😃

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.0 39 11/22/2024
3.0.0 352 4/6/2024
2.0.0 210 6/27/2023
1.1.1 139 5/18/2023
1.1.0 1,000 9/5/2019
1.0.4 725 11/12/2018