Dec 21, 2010
I've been using VisualBasic 2008 Express Edition for a little while now, and I've gotten the hang of a few things like nesting and basics like that. I love learning everything I can about it, and so I'm working on a program that's got some things I'm not so familiar with involved. I'm not sure exactly what it is I'm looking for help with; as I'm sure some of you may know, there are many different ways to accomplish the same task--it's just that we don't always know the simplest solution, unfortunately. So anyhow, I'd like this program to do a couple of things... Firstly, to read in data from a text source and display it accordingly, and also to use that data in a list box and compile a new list from the original one.I've got a rather vague idea on how to do the first objective to put it nicely.I've read a little about delimiters and such, but the problem is that everywhere I look for tutorials or examples, I'm not really seeing exactly what it is I'm trying to do.Here's an example of the text I'm trying to parse/read/whatever it is:|Name of thing|some data|blah|blah blah|
View 1 Replies
In this example, I use the vertical bar character (I don't know what it's called; it's Shift + for me) to separate data in a pre-defined order. Let's say I wanted to use this for car information, I guess.[code]Like that, only many more times. What I can't figure out though, is A.) how to make VB read every line within the text file and B.) how to differentiate each of those sets of data so that I can read them into labels on the form. At this point, all I do know is that that vertical bar (this thing) is what's called the delimiter. Other than that, I'm left to pulling my hair out.