954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to create a simple flat file login console application?

Hi people, i am totally new to java and is still pretty much struggling with it now... please forgive me if i sound stupid from here on...

I am trying to come out with a simple java login console application using a flat file as data base.

I have done the registration of a User and details of the User are stored in ArrayList account. the details are then wrote into the text file account.txt

What i will like to do is to do the login screen and after the login, the following applications will all be linked with this particular user.

Anyone have any sample codes for reference?

Many thanks for help...

grhu8175
Newbie Poster
1 post since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

Create first the gui for login, using javax.swing. Then when you click the button you will have to read the file where the users are stored (if you know how to write into the file since you said that you are done with the registration part, you would be able to read it as well) And then check the given values with the ones from the file.

javaAddict
Nearly a Senior Poster
Team Colleague
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You