I have this assigment where I have to make a simple shopping interface, in which the users can register, log in and buy. As it's a simple one I'm not bothering to even think of security issues or anything, so when a new user registers I just take the data of each textbox(name,email,country, etc)add it to an arraylist, and then store that into a txt file, with one user per line. When you open up the txt file each line looks like this:
[Name,email,password,Country,State,adress,birthdate]
now I'm trying to do the log in method, in wich I just need to compare the inputs on the textboxes to the defined indexes on each the arraylist of each user(user[1] for the email and user[2] for the password), but when I read the file line from line, it just makes the whole arraylist into a big string like this:
"[Name,email,password,Country,State,adress,birthdate]"
is there a way to read each line as an arraylist?
btw, I'm using the BufferReader and FileReader libraries
(english is not my native tongue so, if anything is not clear, please ask so I can try to clarify it)