billabong0202
Newcomer
- Joined
- Jan 4, 2004
- Messages
- 2
for my vb.net class my teacher wants me to write a program that will display individual and team bastting statistics in a table. THe data is given to me in a text file. the form of the text file is "comma delimited" meaning that a comma separates the peices of data in a single line. A line of which looks like:
Davis,342,101,292
Smith,228,87,144
my problem is that when i use the split() function, i do not know how to loop it through the file so it not only splits the first line, but also it splits all of the lines. My second problem is that it separates the data ino a single vertical colum using the split funtion so instead of looking like above^^ it looks like:
Davis
342
101
292
How would i make it so i can have the name and numbers line up with the colum:
name:
times batted:
#of hits:
bases gained:
because the split is considered as one object so wouldnt it only line up wiht the colum name so it would look like
name: davis
342
101
292
times batted:
# of hits:
basses gained:
Davis,342,101,292
Smith,228,87,144
my problem is that when i use the split() function, i do not know how to loop it through the file so it not only splits the first line, but also it splits all of the lines. My second problem is that it separates the data ino a single vertical colum using the split funtion so instead of looking like above^^ it looks like:
Davis
342
101
292
How would i make it so i can have the name and numbers line up with the colum:
name:
times batted:
#of hits:
bases gained:
because the split is considered as one object so wouldnt it only line up wiht the colum name so it would look like
name: davis
342
101
292
times batted:
# of hits:
basses gained:
Last edited: