![]() |
|
[.NET] Check if username and password exists in txt file - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Check if username and password exists in txt file (/showthread.php?tid=5945739) |
Check if username and password exists in txt file - Formula 1 - Feb 27, 2019 Hello, How can i check if username and password exists in txt file? Text file looks like that: username1:password1 username2:password2 I want it to read each line... not only the first line RE: Check if username and password exists in txt file - itcorp - Feb 27, 2019 (Feb 27, 2019 02:39 PM)uberhacker Wrote: Hello, Here it is https://pastebin.com/mWRFkpFX RE: Check if username and password exists in txt file - SaketSaket - Feb 28, 2019 nice work itcorp... keep it up... RE: Check if username and password exists in txt file - 0xDEAD10CC - Mar 1, 2019 (Feb 27, 2019 05:25 PM)itcorp Wrote: Here it is https://pastebin.com/mWRFkpFX You should be using the count parameter in one of the overloads of the Split() method to avoid it splitting the pair into more than 2 chunks in case a password contains the ":" delimiter. NO idea why you're using LINQ here though... 🤨 You can index arrays and they also have a Length property you can check to avoid the index out of range exception. |