Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java read last line of file

 String lastLine = "";

    while ((sCurrentLine = br.readLine()) != null) 
    {
        System.out.println(sCurrentLine);
        lastLine = sCurrentLine;
    }
 
PREVIOUS NEXT
Tagged: #java #read #line #file
ADD COMMENT
Topic
Name
7+8 =