I select data from sql table into txt file. It looks like :
Apple 10
Orange 19
Pear 8
Now I want to loops throught this data and pass parameters like (name:"Apple", amount:"10") into my function.
(Get-Content D:powerShellTest.txt) -split 's+'
I've tried to split data by whitespaces, which works, but I have every "word" with different index in array.
I want that every row will have different index and then I can get name like arr[i][0] and amount like arr[i][1]
