Click button to edit
QuickStart: Read Fixed File
Example of how to read a Fixed Length layout file (eg COBOL output):
Let's start with a simple file:
Input.txt
We define the record layout:
RecordClass.cs
Read the values and write them to the Console:
Example.cs
Console
Client: 1010, Name: Alfreds Futterkiste
Client: 12399, Name: Ana Trujillo Emparedados y
Client: 11, Name: Antonio Moreno Taquería
Client: 51677, Name: Around the Horn
Client: 99999, Name: Berglunds snabbköp