File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes Reading password information from a text file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Reading password information from a text file." Watch "Reading password information from a text file." New topic

Reading password information from a text file.

gautam anand

Joined: Jun 02, 2004
Posts: 22
I have a jsp page with two text fields named username and password. When the user clicks the submit button i need to perform a check if the password and username provided are correct. The username and passwords are stored in a text file as :



Please let me know how can I read this information from the file.

Your help would be sincerely appreciated.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60774

Reading from a file whether you are in a JSP or a plain-old Java program is the same, Btw, why are you doing this in a JSP rather than a Servlet?

Regardless, I'm moving this off to the I/O Forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Reading password information from a text file.
Similar Threads
How do I grant applications launched through JWS socket permission?
Data Access Class Reading a Text File????
How to View the Contents from the Database?
reading passwords and connections from a flat file
Saving user accounts