i am wanting to read in some statistics from an excel file and then put them into a multi dimensional array, but im unsure how to do this, ill show you what i have so far.
Public Class frmNumbat
Dim sReader As IO.StreamReader
Dim numarr(,,,) As Double
Dim numdata As String
Dim comma1 As Integer
Dim a, b, c, d As Double
Private Sub txtInputFile_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtInputFile.TextChanged
sReader = IO.File.OpenText("C:\Users\Ben Cousins\Downloads\datanumbats.csv")
numdata = sReader.ReadLine()
Do While (sReader.EndOfStream)
comma1 = numdata.IndexOf(",")
numarr(a, comma1, comma1 + 1, comma1 + 1 + 1) = CDbl(numdata.Substring(0, comma1)) 'comma1 lots of characters
MessageBox.Show("numarr")
Loop
End Sub
as all uni students do, i have left it to the last minute and kinda havent been upto date with all the work, so i may take a little while to learn what you are saying.
i couldnt attach the statistics so i uploaded it onto a fileshare website
http://www.2shared.c...ataNumbats.html
thanks

New Topic/Question
Reply




MultiQuote




|