2
Reply

Help me with simple source

chris

chris

Feb 7 2009 1:15 AM
2.7k
I am learning C# and the best way I learn is by studying source code. I still could not find any source examples on how to do what I want to accomplish, so I was wondering if someone could give me some code so I can study this and learn this concept for future apps. Basically I have a URL that leads to a text file (www.example.com/list.txt). I want it to be used as a database and read the content into a listview. I want a column for the date* and a column for the name* (see below) .

So a basic overview is that button_1 connects to the URL gets the text and reads like so into a list box:

Skips the first 6 lines of the text.
Reads the first 10 characters of each line into column 1.
Reads the rest of the characters of each line into column 2.

As you can see it is simple for most of you, but this "database" reader will help me dearly in the future as this would be a base foundation for an app I want to develop. Thanks I hope you can help.

Answers (2)
Next Recommended Forum