hi,
I have just started learninn vb, one of my mini projects to convert raw data to csv, i need a particular alignment of o/p...
VarArray is an arraylist that i used and has these elements as strings
vararray[0]={"0","q","w","e","r".................} 7042 elements in each line
vararray[1]={"1","a","s","d",..............}
.
.
vararray[32]={"32",,........}
This is my small loop for o/p and writing to a text file
For Each line In VarArray
temparray = line.Split(",")
header = temparray(2)
For counter = 0 To UBound(temparray)
Console.WriteLine(temparray(counter))
File.Write(...) 'writing to a file
........
Next
File.Close()
Next
my present output file:
0
q
w
e
r
.
.
.
.
.
1
a
s
d
f
g
.
.
.
2
z
x
c
v
b
.
.
.
3
n
m
.
.
.
4
.
.
32
.
.
.
desired output in is:
0 1 2 3 . . .32 (columns distant by a tab space)
q a z n (i.e.,in csv file,"1" in next box and so on)
w s x m . . . .
e d c . . . . .
r g v .
. . .
. . . .
. . . . .
. .
. .
in this format, my final o/p has to appear in a csv file.....
what additions will i have to do to my code to get desired o/p?
i wud really appreciate if some1 cud help me in any way....
Thank you,
V