The issue occurs when I try to write an empty section. Here's a file parsed that I try to write back :
[emptysection]
[anothersection]
value = 1
The error that I received :
Out-Keys : Cannot validate argument on parameter 'InputObject'. The argument is null, empty, or an
element of the argument collection contains a null value. Supply a collection that does not contain any
null values and then try the command again.
At D:\Scripts\PowerShell modules\PsIni-master\Functions\Out-IniFile.ps1:219 char:26
+ Out-Keys $InputObject[$i] `
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Out-Keys], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Out-Keys
The issue occurs when I try to write an empty section. Here's a file parsed that I try to write back :
The error that I received :
Any Idea what should be done here?