473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

changing output text alignment in vb- raw 2 csv

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
Oct 1 '08 #1
0 1465

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: kie | last post by:
hi, when i use appendChild, the following code ends in success cellSec3=document.createElement('TD'); aTextBox=document.createElement('input'); aTextBox.type = 'text'; aTextBox.value =...
22
by: Jaspreet | last post by:
I was recently asked this question in an interview. Unfortunately I was not able to answer it and the interviewer made a decision on my C strengths (or weekness) based on this single question and...
3
by: Mad Scientist Jr | last post by:
Can someone post a clear example of how to change the background color of an individual datagrid cell for a Windows desktop app? (preferably in vb.net) I found some code on how to do this when...
2
by: Arsalan | last post by:
How do I change the Lisview's items defaul alignment (i.e left) to some other, for eg right or center ?
3
by: Simon Abolnar | last post by:
Is it possible to align headers and text in different way. Because with: dgts.GridColumnStyles(0).Alignment = HorizontalAlignment.Center alignment is set for all column (header and text). ...
3
by: Prabu Subroto | last post by:
Dear my friends... I am using SuSE 9.1 and postgres 7.2.x . Each time if I want to connect to postgres with postgres I do like this: " patrixlinux@patrix:~> su Password:...
0
by: VorTechS | last post by:
I'm having a problem with an inherited label, applying text rotation to aligned text. If text rotation is applied to the aligned text, the alignment goes 'nuts'. I can find no logic to what is...
7
by: bobh | last post by:
Hi, I have this code in the groupheader_print section of an AccessXP report. What is the code to 'Bold' the text288 cell. thanks bobh. 'this is the rpting category header wks.Cells(row, 1) =...
15
by: Matthew | last post by:
Hi, I'm mainly a coder, PHP at the moment, but from time to time need to design and use some css. I've a css text alignment issue. Mostly to align text neatly in the past I've used tables....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.