How to put each chars of a line of a text file into an array ?

here is my code:

Set textStreamObject = fso.OpenTextFile("data.tmp", 1, False, 0)
textzone2.Text = textStreamObject.ReadLine
Set textStreamObject = Nothing
Set fso = Nothing
textzone.Text = "TEST PASSED"

it reads the first line of the file data.temp and its shown in textzone2.

Now id like to put all chars of that line into an array. any suggestions ?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try a loop with and use mid$
an example

Private Sub Command1_Click()
Dim str As String
Dim a() As String
Dim i As Integer
str = "hello"
ReDim a(1 To Len(str))
i = 1
Do While i <= Len(str)
a(i) = Mid$(str, i, 1)
i = i + 1

End Sub

the array a will contains "h" "e" "l" "l" "o" after this code is run

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
why not use a code like this

Private Sub SomeFunc()
     Dim strLine as String

     Open "C:\data.tmp" For Input as #1

     ' Get the first line
     Line Input #1, strLine
     Close #1

     txtTextBox.Text strLine
End Sub

Good Luck
Well, First, Why????
Seems like a kind of pointless thing to do.

something like

    Dim myArr() As String
    Dim ptr As Long
    ReDim myArr(1 To Len(textzone2.Text))
    For ptr = 1 To Len(textzone2.Text)
        myArr(ptr) = Mid(textzone2.Text, ptr, 1)
    Next ptr
navneet77 You got there first, and good point about Mid$ rather than just Mid
Punker51Author Commented:
Exactly what i wanted to know
thx m8
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.