readLine() returns string type....
i have a file of usernames and passwords and am trying to check the username as when entered into login page.....
InputStreamReader i1=new InputStreamReader(new FileInputStream("usr"));
BufferedReader b=new BufferedReader(i1);
String str;
str=b.readLine();
for(int i=0;i<str.length;i++)
if(str[i]==("USERNAME: "+Login.usr))
{
bool=true;
}
now i know im trying to use a for loop using str which im unable to do so...
so what else can i do? ? ?
theres another method of using split() using it splitting into a string[]
but i dont want to use that.....
what else shud i do? ??