Parser for Australian Energy Market Operator (AEMO) Meter Data File Format (MDFF) specification
Install Nuget package
dotnet add package AEMO.MDFF
Use Nem12Reader to parse csv file
using AEMO.MDFF.NEM12;
var nem12Reader = new Nem12Reader();
await using var fs = new FileStream("nem12.csv", FileMode.Open, FileAccess.Read);
await foreach (var r in nem12Reader.ReadAsync(fs, CancellationToken.None))
{
switch (r)
{
case HeaderRecord { VersionHeader: var vh }:
Console.WriteLine(vh);
break;
case NMIDataDetailsRecord { NextScheduledReadDate: var nsrd }:
Console.WriteLine(nsrd.ToLongDateString());
break;
}
}