basically i have a logs file which gets edited by a Program all the time. I want to check if the Last Line of the Chatlogs includes a "ONLINE:" all the time and if it does, i'd like to save it as a String. So everytime if the last sent message in the logs includes the Word "ONLINE:" the string gets edited to the line including "ONLINE:".
I tried creating an ArrayList in a while(true)-Statement all the time (cause the file gets edited) with the whole .logs file and checking the last message but that kinda doesn't really work. Any Ideas?