Home > Net >  For help,,,
For help,,,

Time:10-21

Strives for the code,,, password authentication procedures, request a user name and password are read from the file read read

CodePudding user response:

It is read from the file, and then verify

CodePudding user response:

Notepad to create a new text file, enter the following 2 lines
The username
"
Save as c: \ 1. TXT

In program
String [] arr=System. IO. File. ReadAllLines (" c: \ \ 1. TXT ");
The arr [0] is "username"
Arr [1] is "password"
You and your program input comparison, judgment
  •  Tags:  
  • C#