Hello friends,
I have three arrays (1-dimension) by name ftplist-1, ftplist-2, ftplist-3.
I want to combine those three into ONE by name ftplist.
Can any one help me how can we do that either in VB.net or C# in SSIS. Here I did and its giving error..."Error: Object reference not set to an instance of an object."
Dim ftp_fileList1 As String() = Nothing
Dim ftp_fileList2 As String() = Nothing
Dim ftp_fileList3 As String() = Nothing
Dim ftp_fileList As String() = New String(ftp_fileList1.Length + ftp_fileList2.Length - 1 + ftp_fileList3.Length - 1) {}
strFile = "L:\Ftp_Files_List.txt"
ftp_fileList1.CopyTo(ftp_fileList, 0)
ftp_fileList2.CopyTo(ftp_fileList, ftp_fileList1.Length)
ftp_fileList3.CopyTo(ftp_fileList, ftp_fileList2.Length)
For Each LocalFile As String In ftp_fileList
File.AppendAllText(strFile, LocalFile & vbCrLf)
Next
Where am I doing wrong? Can anyone help? Thanks in advance.
- Edited by vvkprasad 3 hours 10 minutes ago