Is it possible to read lines from a .txt file in Java to an array and then search the array for possible values? So for example a file containing user logons to see if a username and password is correct? (I know it's not secure in any way).
Yes, it is. You can read text from a file, and add strings to an array. It all depends on how the text file is formatted. Once you have the strings, there are a variety of ways that you can check. It depends on the system you are using.
If I have a file consisting of: [Fred, 1, 1989] [Barry, 6, 1967] [Bob, 9, 2001] How can I get just the names?
search through the first comma in each line or however the data is delimited for each person-- and save the results to a string. Q..