I can\'t find the answer to my specific problem anywhere so I figured I\'d open a new question.
I have a program that converts text between ASCII and Binary. It does thi
Using a List(Of String) is better because you don't need to know the size of the array.
Of course you need to initialize the List(Of String) before usage.
Function ConvertBinaryToASCII(ByVal input As String) As String
Dim ASCIIList() As String = .....
Dim BinaryList() As String = ......
Dim BinarySubstrings = Enumerable.Range(0, input.Length \ 8).[Select](Function(i) input.Substring(i * 8, 8)).ToArray()
Dim result = new List(Of String)()
Dim binaryMatch As Integer
For Each e As String In BinarySubstrings
binaryMatch = Array.IndexOf(BinaryList, e)
result.Add(ASCIIList(CInt(binaryMatch)))
Next
Return String.Join("", result.ToArray())
End Function