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

相关文章: