In my current project I have got some .csf files with the requirement to import these files
to my project as base data to use it as inmemory repository.

The best solution was these single line of code in powershell.

1
Get-Content -path $inputFile | ConvertFrom-Csv -Delimiter ';' | ConvertTo-Json | Out-File $outputFile

You can download the complete powershell script from my gist repository at github.

Comment and share

  • page 1 of 1

Jan Baer

I’m a passionated Softwaredeveloper from Munich.


Softwaredeveloper


Germany