Answers for "java read last line of filee"

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"

Java Answers by Framework

Browse Popular Code Answers by Language