Given text file which contains the registration data like a database:
[ID] [Uname] [PW] [Email]
0 Aron asd [email protected]
1 Aron2 asdd [email protected]
I have the username and the password input. How would i read only that line in this text file where my uname.Text and password.Text are given?
File.ReadLines("\path\to\your\file.txt");
to get a list of strings containing each line of the file. How to convert each of the lines into separated strings depends on a few things. Are the four columns shown the only four, and does none of them contain any whitespaces? If so, you could use a white-space split on the line-strings to separate them.