I am making a networking site for a fun programming project. I want to add a log in screen, using a Jframe and once they log in, it will go to the second JFrame carrying over all of the information. So lets call the first one "logIn" and the second one "socialNetwork".
What i am trying to do essentially is have a read/write file in the program and have each line be a user name and a password, also an option to create a new profile which will then add on to the file. If a user hits the log in button on "logIn" I will read the file and if they user name and password match, It will then send or bring up the main Profile viewer or the "socialNetwork" Is there a line of code in order to do that? Is there a tutorial you can link me? I don't think I am searching for the right thing when I look for it.