خرید بک لینک

Vote count: 0

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]

asked 45 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 12 مرداد 1395 ساعت: 22:20

صفحه بندی