我有两个文本文件,假设包含:
1.txt:
1
2
3
4
5
6
2.txt:
a
b
c
d
e
f
我正在尝试读取文件,然后将结果输出到 Out-Gridview(每个文件都在它自己的列中):
1 a
2 b
3 c
4 d
5 e
6 f
我正在努力 :
$list1= gc 1.txt
$list2= gc 2.txt
$list1 | Add-Member -Name "LIST 2" -MemberType NoteProperty -Value $liste2
$list1 | out-gridview -wait
但我得到的是:
我怎样才能读取每个文本文件然后输出到gridview中的列?太感谢了,这个我想不通...