Dim w1(,) AsDouble=CType(oW1, Array) Dim cCount AsInteger= w1.GetLength(1) Dim rCount AsInteger= w1.GetLength(0) Dim sw As System.IO.StreamWriter sw = System.IO.File.CreateText("f:corr1.txt") For i AsInteger=1To rCount For j AsInteger=1To cCount sw.Write(w1(i, j)) If j < cCount Then sw.Write(Microsoft.VisualBasic.Chr(9)) EndIf Next j If i < rCount Then sw.Write(Microsoft.VisualBasic.Chr(13) + Microsoft.VisualBasic.Chr(10)) EndIf Next i sw.Close() Dim w2(,) AsDouble=CType(oW2, Array) Dim cCount2 AsInteger= w2.GetLength(1) Dim rCount2 AsInteger= w2.GetLength(0) Dim sw2 As System.IO.StreamWriter sw2 = System.IO.File.CreateText("f:corr2.txt") For i AsInteger=1To rCount2 For j AsInteger=1To cCount2 sw2.Write(w2(i, j)) If j < cCount2 Then sw2.Write(Microsoft.VisualBasic.Chr(9)) Next j If i < rCount2 Then sw2.Write(Microsoft.VisualBasic.Chr(13) + Microsoft.VisualBasic.Chr(10)) Next i sw2.Close()