Trying to convert a CSV file to a 2 dimensional array
the line looks something like this
123456, 08/15/2001, 2:39:40 AM, 2:41:29 AM, 49 secs
123654, 08/15/2001, 2:49:40 AM, 2:51:29 AM, 49 secs
I open the file and do line input,
then I want the line to be put into a two dimensional array
the number of lines is unknown so I place a counter
Looks something like this
cnt = 0
do until (EOF(1))
line input #1
for x = 0 to 4
Shold(cnt,x) = (This should the section of the string)
next x
cnt = cnt + 1
doevents
loop
Shold(0,0) through Shold(0,4) for line 1
Shold(1,0) through Shold(1,4) for line 2 and so on....
everything I try does not seem to work
Any help would be greatful.
the line looks something like this
123456, 08/15/2001, 2:39:40 AM, 2:41:29 AM, 49 secs
123654, 08/15/2001, 2:49:40 AM, 2:51:29 AM, 49 secs
I open the file and do line input,
then I want the line to be put into a two dimensional array
the number of lines is unknown so I place a counter
Looks something like this
cnt = 0
do until (EOF(1))
line input #1
for x = 0 to 4
Shold(cnt,x) = (This should the section of the string)
next x
cnt = cnt + 1
doevents
loop
Shold(0,0) through Shold(0,4) for line 1
Shold(1,0) through Shold(1,4) for line 2 and so on....
everything I try does not seem to work
Any help would be greatful.