Files
vda-to-edifact-converter/test_715.ps1
2026-03-13 09:53:40 +01:00

12 lines
621 B
PowerShell

$lines = Get-Content "C:\Users\matthias.hoesch\.gemini\antigravity\scratch\vda-to-edifact-converter\samples\test_vda4913.txt"
foreach ($l in $lines) {
if ($l.Length -ge 67 -and $l.Substring(0, 3) -eq "714") {
Write-Host "=== 714 ==="
Write-Host " [49-64] raw16: [$($l.Substring(49,16))]"
Write-Host " [53-64] /100: $(([long]$l.Substring(53,12)) / 100)"
Write-Host " [53-64] /1000: $(([long]$l.Substring(53,12)) / 1000)"
Write-Host " [53-61] raw9: $([long]$l.Substring(53,9))"
Write-Host " [49-60] raw12: $([long]$l.Substring(49,12))"
}
}