Ok heres the idea, i have two text files. I want the program to open them both, check for a match from the users input in the first file, if its found i want it to go to the matching id number in the second file, then output the entire line from the second file. All i know is i need to us if.stream()??
Both files opened.
User enters: Hi how are you today.
Program scans first file for hi, how, are, you, and today.
it finds this line:
it then searches the second file for the line
2 I am fine, thank you for asking.
and outputs: I am fine, thank you for asking.