Hack Forums
[C#] [need C# help] How can i load info from a text file and use the info? - 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: [C#] [need C# help] How can i load info from a text file and use the info? (/showthread.php?tid=172366)



[need C# help] How can i load info from a text file and use the info? - The-Black-Raven - Oct 27, 2009

like lets say i need to load a username list and then exucute commands

list architecture

Username1:password1
Username2:password2
Username3:password3

how can i do this

load list.txt
read U/P line1
login with U/P
another action
logout
read U/P line2
login with U/P
another action
logout
read U/P line3
login with U/P
another action
logout


and how can i make the action list dynamic, such as if it only find 2 u/p it dose the actions twice (once for each account) and if there is 100 u/p it dose the command 100 times (once for each account)