Ulf,
this is my code
ServletOutputStream sos = resp.getOutputStream();
FileReader fr = new FileReader("../../test.log");
BufferedReader br = newBufferedReader(fr);
String str;
while(true)
{
str = br.readLine();
if(str==null) sos.println(str);
else Thread.sleep(3000);
}
herethe aspect is when i try to read the log it could have reached eof but after sometime it some contents could have be upated for ex:
at 2:00 the last two lines may be
SPORT
-1
at 2:10 this could be modified as
SPORT
CRICKET
FOOTBALL
SOCCER
-1
i use sleep to allow time for the file being wirtten and then i read the same and send it to applet , but i couldn't get this aspect and my applet is not getting intialized.