المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Add text file contents to a listview



C# Programming
08-06-2009, 11:47 AM
well i have a textfile that has a bunch of usernames and passwords in them.

they are in this format:

username:password
username2:password2
username3:password3

etc.

now i want to put each of these into a listview, with each login being on a new row.
for example username is in listview1.subitems[0] and the password is in listview1.subitems[1].
then the next account is the same, but on a new line.

im not too sure in how to do this.

i can only seem to get one of the accounts to go into it.
i want each on a new row.