Answer by Jan for VB 2008 - Index was outside the bounds of the array
Here is how I solved it for those who might wonder the same:Dim CFGReader(2) As System.IO.StreamReaderCFGReader(0) = My.Computer.FileSystem.OpenTextFileReader(CurDir() & "\Config.cfg")Dim Server(2)...
View ArticleAnswer by ChrisBD for VB 2008 - Index was outside the bounds of the array
Arrays are idexed from 0 onwards. Thus 24 characters would be array index 0 to array index 23.editLet me explain.System.IO.StreamReader.ReadToEnd returns a String type as you know.String.Chars() allows...
View ArticleVB 2008 - Index was outside the bounds of the array
Hey guys I'm having a problem while reading a config.cfg file of my program. I can read the 23. char of the file but I can't read the 24. char (last char in file).This is the code:Dim CFGReader2 As...
View Article
More Pages to Explore .....