Help please
I think there is Copy.to function but i cant find it :(
I'm using VS2008
Thanks

Sub Main()
		Dim aByte() As Byte = Text.Encoding.Default.GetBytes("FirstString")
		Dim bByte() As Byte = Text.Encoding.Default.GetBytes("SecondString")
		Dim mergedByte(aByte.Length + bByte.Length) As Byte
		aByte.CopyTo(mergedByte, 0)
		bByte.CopyTo(mergedByte, aByte.Length)
		Console.WriteLine(System.Text.Encoding.Default.GetString(mergedByte))
		Console.Read()
    End Sub

this can be done through Array List Objects. see here

byte[] byteArray1 = new byte[5];
byte[] byteArray2 = new byte[11];
byte[] combined = new byte[byteArray1.Length + byteArray2.Length];
byteArray1.CopyTo(combined, 0);
Array.Copy(byteArray2, 0, combined, byteArray1.Length,
byteArray2.Length);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.