Listbox threading for real-time log:
Check if data folder/any text files exist and if they don't create them (example uses 1 text file):
Split word into 2 variables (for example username:password):
For the last function, you only want to split the string once. Your example wouldn't parse a password that contained a colon :
Here is how I do a split in C#.NET:
@(you need an account to see links) @(you need an account to see links)Code:string splitMe = "username:password"; string[] splitData = splitMe.ToString().Split(":".ToArray()); //username is stored in splitData[0] //password is stored in splitData[1]
(you need an account to see links)
(you need an account to see links)(you need an account to see links)
------------------------
[02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
------------------------
Coolguy (08-19-2015)
Ok but what if the password contains a colon? (A perfectly valid password character)
Code:string splitMe = "username:pas:sword"; string[] splitData = splitMe.ToString().Split(":".ToArray()); //username is stored in splitData[0] //password is stored in splitData[1] AND splitData[2]
(you need an account to see links)
(you need an account to see links)(you need an account to see links)
------------------------
[02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
------------------------
Code:string splitMe = "username:pas:sword"; string[] splitData = splitMe.Split(new char[] { ':' }, 2); //username is stored in splitData[0] //password is stored in splitData[1]