Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanstapel committed Jul 22, 2023
2 parents 25540b4 + 13734e2 commit 642b7bb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,19 @@ http://www.nuget.org/packages/IFTSTAParser/
The demo solution shows you how to use the parser:


```
```csharp
string path = "iftsta-file.txt";
List<IFTSTAConsigment> consigments = IFTSTAParser.Load(path);
IFTSTADocument document = IFTSTAParser.Load(path);

if (document.CreationDate.HasValue)
{
// process header information
}

foreach(IFTSTAConsigment consigment in document.Consigments)
{
// process consignment
}
```

which will then deliver you the list of consigment objects in the original file.
Expand Down

0 comments on commit 642b7bb

Please sign in to comment.