FixedLengthHelper 1.6.0
dotnet add package FixedLengthHelper --version 1.6.0
NuGet\Install-Package FixedLengthHelper -Version 1.6.0
<PackageReference Include="FixedLengthHelper" Version="1.6.0" />
paket add FixedLengthHelper --version 1.6.0
#r "nuget: FixedLengthHelper, 1.6.0"
// Install FixedLengthHelper as a Cake Addin #addin nuget:?package=FixedLengthHelper&version=1.6.0 // Install FixedLengthHelper as a Cake Tool #tool nuget:?package=FixedLengthHelper&version=1.6.0
FixedLengthHelper
FixedLengthHelper is a library to work with fixed-length formats. Provides low-level operations that handle fixed-length formats.
FixedLengthHelper also supports multi-byte strings and surrogate pairs.
NuGet: FixedLengthHelper
Install-Package FixedLengthHelper
Introduction
Sample text:
00554Pedro Gomez 123423006022004
01732中村 充志 004350011052002
00112Ramiro Politti 000000001022000
00924Pablo Ramirez 033213024112002
Kanji characters are 3 bytes per character in UTF-8.
Sample code:
using System.Text;
using FixedLengthHelper;
var reader = new FixedLengthReader("Sample.txt", Encoding.UTF8);
while (await reader.ReadAsync())
{
Console.WriteLine($"CustomerId: {reader.GetField(0, 5, TrimMode.TrimStart, '0')}");
Console.WriteLine($"Name : {reader.GetField(5, 21, TrimMode.TrimEnd)}");
Console.WriteLine($"Balance : {reader.GetField(26, 15, TrimMode.TrimStart, '0')}");
Console.WriteLine();
}
The following results are obtained:
CustomerId: 554
Name : Pedro Gomez
Balance : 123423006022004
CustomerId: 1732
Name : 中村 充志
Balance : 4350011052002
...
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.0)
- System.Memory (>= 4.6.0)
- System.Text.Json (>= 9.0.0)
- System.Threading.Tasks.Extensions (>= 4.6.0)
-
net8.0
- System.Text.Json (>= 9.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on FixedLengthHelper:
Package | Downloads |
---|---|
SqlBulkCopier.FixedLength
SqlBulkCopier is a library that makes the high-speed bulk copy feature of SQL Server, SqlBulkCopy, more manageable with CSV files and fixed-length files. |
GitHub repositories
This package is not used by any popular GitHub repositories.