First off — Use a better title for your post — that will help people know what it is about before opening. In your case, perhaps “Can’t remember name and password”.
If you are the admin of the site, then you can go to the login screen and choose “Lost your password”.
And then enter in:
user: admin
e-mail: <youremail>
Your password should be sent to your address. Now if you aren’t the admin, the best way to do it is contact your admin. For obvious security reasons, these aren’t stored in a file.
If you have access to the MySQL database, the usernames are listed there (I can’t remember the exact table name, but it is pretty obvious), and then you can retrieve your password using the procedure above.