Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Adding items to a collection from a .text + more

$
0
0
First post here, hello everyone!

I've got something that I can't quite figure out due to my limited knowledge of C#:
I have a program that downloads a .txt file from a website on startup.
The file contains multiple things:
- the name of a selection that I want to show up as an option on a comboBox (within a collection).
- and a few other SEPERATE things things that I want to set label.Texts to.

for example (im just making this up based on how I would like things to run)
NameHere; Info; Info
Name2Here; Info2, Info2



So essentially, I would like my program to parse this and do some things accordingly:
read the space where "NameHere" is and add it to a collection.
read the space where "Info" is and set a label.Text to it
read the 2nd "Info" and set another label.Text to it.

Of course every line would be in that order. Any ideas on how I could get started with this? Or am I over complicating it and could I do it in a much easier way?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>