public static void main(String[] args) throws IOException, ClassNotFoundException {
		File statusDir = new File(statusPath);
		File[] files = statusDir.listFiles();
		TreeSet<Long> idSet = new TreeSet<Long>();
		long total = 0;

		for (int i = 0; i < files.length; i++) {
			System.out.println(i + " " + files[i].getName());

			FileInputStream fin = new FileInputStream(files[i]);
			ObjectInputStream ois = new ObjectInputStream(fin);
			BufferedWriter bw = new BufferedWriter(new FileWriter(UserIdsPath + "userID @ "
					+ System.currentTimeMillis() + ".txt"));

			while (true) {
				try {
					Status s = (Status) ois.readObject();
					bw.write(s.getUser().getId() + "");
					bw.newLine();

					idSet.add(s.getUser().getId());
					total++;
				} catch (Exception e) {
					fin.close();
					ois.close();
					bw.close();
					break;
				}
			}
		}

		System.out.println("Total tweets : " + total + ", unique ids : " + idSet.size());

	}