freddie_26
Newcomer
i'm trying to add words to a text file that i have already created which is in the form of a array. Is this the correct way to do this.
the text file is like this
rat, mice, that
do, any, the
it seem that i'm able to add but when i go back to my program to see the words itcrashes with an error message saying "index was outside the bound of the array"
thanks
Dim flower As String
Dim tree() As String
Dim m As Integer
Dim sw As IO.StreamWriter = IO.File.AppendText("words.txt" )
rm(m, 0) = InputBox("Please enter English Word" )
rm(m, 1) = InputBox("Please enter French Word" )
rm(m, 2) = InputBox("Please enter German Word" )
flower = Join(tree, "," )
sw.WriteLine(flower)
sw.Close()
the text file is like this
rat, mice, that
do, any, the
it seem that i'm able to add but when i go back to my program to see the words itcrashes with an error message saying "index was outside the bound of the array"
thanks
Dim flower As String
Dim tree() As String
Dim m As Integer
Dim sw As IO.StreamWriter = IO.File.AppendText("words.txt" )
rm(m, 0) = InputBox("Please enter English Word" )
rm(m, 1) = InputBox("Please enter French Word" )
rm(m, 2) = InputBox("Please enter German Word" )
flower = Join(tree, "," )
sw.WriteLine(flower)
sw.Close()