FixedLengthHelper 1.2.0
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
dotnet add package FixedLengthHelper --version 1.2.0
NuGet\Install-Package FixedLengthHelper -Version 1.2.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="FixedLengthHelper" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FixedLengthHelper --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FixedLengthHelper, 1.2.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 FixedLengthHelper as a Cake Addin #addin nuget:?package=FixedLengthHelper&version=1.2.0 // Install FixedLengthHelper as a Cake Tool #tool nuget:?package=FixedLengthHelper&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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. |
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.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
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.