I'm new to Java programming and I'm challenging myself to do this one but it seems when it comes to buffer reader and writer I get lost. I have two text file that I parsing out from csv file, and I want to compare the data between this textfile.
This is what looks like inside the text file.
file1.text
sample1,true,online
file2.text
sample1,true,test,check,OL
expected output :
valid
file3.text
online,OL
offline,OF
idle, IL
I want to compare the online in file1 and OL in file2. But as you can see its seperated with a comma. If the online word in file1 change to offline or idle the output should be invalid and same as on file2. Thanks in advance guys!Any help would be appreciated. Cheers