try {
String s;
String[] real_str;
Vector vVisitor = new Vector();
BufferedReader in=null;
String fileDate = Utils.addDays(Utils.getDateAsString_(), -1, "yyyy-MM-dd");
in = new BufferedReader(new FileReader("C:/workspace/NEW_POCKET1/src/temp/access_log."+fileDate));
while((s = in.readLine()) != null) {
real_str=s.split(" - - ");
if(!vVisitor.contains(real_str[0])){ //중복 IP가 없을경우
vVisitor.add(real_str[0]);
}
}
in.close();<br / System.out.println(fileDate+" "+vVisitor.size());
} catch (Exception e) {
System.out.println(e.toString());
}
String s;
String[] real_str;
Vector vVisitor = new Vector();
BufferedReader in=null;
String fileDate = Utils.addDays(Utils.getDateAsString_(), -1, "yyyy-MM-dd");
in = new BufferedReader(new FileReader("C:/workspace/NEW_POCKET1/src/temp/access_log."+fileDate));
while((s = in.readLine()) != null) {
real_str=s.split(" - - ");
if(!vVisitor.contains(real_str[0])){ //중복 IP가 없을경우
vVisitor.add(real_str[0]);
}
}
in.close();<br / System.out.println(fileDate+" "+vVisitor.size());
} catch (Exception e) {
System.out.println(e.toString());
}