Originally Posted by
Eranga
There are solutions, read the complete thread.
rrrrrrrr
Don Cash:
public static void main(String[] args) throws Exception {
FileInputStream in = new FileInputStream("file.txt");
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine = null, tmp;
while ((tmp = br.readLine()) != null)
{
strLine = tmp;
}
String lastLine = strLine;
System.out.println(lastLine);
in.close();
}
but if i have 10000 lines it will make more than 10000 operations

its bad..