Hey
I'm making my first real tool in C# (which isn't my main language), and at some part I need to store an undefined number of usernames and passwords to get those values later, in another function.
At the moment I found this on google:
A list of two strings, in which I add "working accounts" in a loop
It works like a charm, but now that I want to display what's in that list (to check if I filled it earlier), I don't really know how to manipulate this "two dimensional list".
Maybe I picked the hard way, what do you think?
Basically my program works like this:
The user enters a list of usernames/password
Then I check if they're working or not one by one in a loop, and I'd like to store the working accounts in that loop
Final step is to save those working accounts in a txt file
I'm making my first real tool in C# (which isn't my main language), and at some part I need to store an undefined number of usernames and passwords to get those values later, in another function.
At the moment I found this on google:
PHP Code
<?php
List<KeyValuePair<string, string>> _items = new List<KeyValuePair<string, string>>();
A list of two strings, in which I add "working accounts" in a loop
PHP Code
<?php
_items.Add(new KeyValuePair<string, string>(username, passwords));
It works like a charm, but now that I want to display what's in that list (to check if I filled it earlier), I don't really know how to manipulate this "two dimensional list".
Maybe I picked the hard way, what do you think?
Basically my program works like this:
The user enters a list of usernames/password
Then I check if they're working or not one by one in a loop, and I'd like to store the working accounts in that loop
Final step is to save those working accounts in a txt file


![[Image: MtOuiI0.png]](https://i.imgur.com/MtOuiI0.png)

![[Image: 39GUiXq.png]](https://i.imgur.com/39GUiXq.png)