Answers for "java check if last line of txt file"

2

java read last line of file

String lastLine = "";

    while ((sCurrentLine = br.readLine()) != null) 
    {
        System.out.println(sCurrentLine);
        lastLine = sCurrentLine;
    }
Posted by: Guest on July-16-2021

Code answers related to "java check if last line of txt file"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language