hello dear,
i am trying to read username password from text file. I want to compare user input by the data stored in c:\pass\info.txt file, but i am getting the error-
"attempt to index global." My code is as below.
beginning_line = 1;
end_line = 2;
filecont = TextFile.ReadToString("c:\\pass\\", "info.txt");
readusername = Input.GetText("user");
readuserpass = Input.GetText("pass");
line = beginning_line;
result = String.Compare(readusername , filecount[1])
Dialog.Message("Notice", result, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
PLEASE ALSO SUGGEST ME WHICH IS THE BEST WAY TO STORE USERNAME PASSWORD. I MEAN IN WHICH FILE FORMAT? AS :-
.INI
.DB
.TXT
REGISTRY.
THANK YOU FOR YOUR KIND HELP.
i am trying to read username password from text file. I want to compare user input by the data stored in c:\pass\info.txt file, but i am getting the error-
"attempt to index global." My code is as below.
beginning_line = 1;
end_line = 2;
filecont = TextFile.ReadToString("c:\\pass\\", "info.txt");
readusername = Input.GetText("user");
readuserpass = Input.GetText("pass");
line = beginning_line;
result = String.Compare(readusername , filecount[1])
Dialog.Message("Notice", result, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
PLEASE ALSO SUGGEST ME WHICH IS THE BEST WAY TO STORE USERNAME PASSWORD. I MEAN IN WHICH FILE FORMAT? AS :-
.INI
.DB
.TXT
REGISTRY.
THANK YOU FOR YOUR KIND HELP.
Comment