Java project

Mooraly Messages postés 1 Statut Membre -  
Sankazz Messages postés 8 Statut Membre -
Hey guys ,i have a java project and the teacher orders us to work with files not databases.So i developped the login form that contains a username and password field and a login button .So when i click Login button i do not know how to verify whether the entries in the fields of username and password matches with the file content .Would somebody help me please .I am stack here .Thanks

1 réponse

  1. Sankazz Messages postés 8 Statut Membre 2
     
    Hello.

    Maybe you could use the Object BufferedReader to read lines in your file ?

    Thanks to a "try / catch" you could verify if usurnames and passwords are correct.

    If they arent, catch an exception.
    0