import java.io.*; public class uldvaade{ public static void main(String argv[]){ try{ String s=""; RandomAccessFile rf=new RandomAccessFile("chat.log", "r"); System.out.println("Content-type: text/html\n\n"); System.out.println("History\n"); while((s=rf.readLine())!=null){ if(s.startsWith("t"))System.out.println(s.substring(1, 2)+ s.substring(s.indexOf(":"))+"
\n"); /* if(s.startsWith("p"))System.out.println( "\n"+ "\n"+ "
\n" );*/ } System.out.println(" "); rf.close(); }catch(Exception e){} } }