Welcome! Here you can paste sources and general debugging text, You can even set yourself a password if you want to keep it just for yourself.

Posted by Anonymous on January Sun 22nd 11:24 PM - Never Expires
Download | New paste

  1. public static String findcachedir()
  2.         {
  3.                 boolean exists = (new File(System.getProperty("user.home") + "/Your_Client_Name_Cache/")).exists();
  4.                 if (exists) {
  5.                         System.out.println("Directory exists");
  6.                         return System.getProperty("user.home") + "/Your_Client_Name_Cache/";
  7.                 } else {
  8.                         File f = new File(System.getProperty("user.home") + "/Your_Client_Name_Cache/");
  9.                         f.mkdir();
  10.                         System.out.println("Directory doesnt exist, making directory");
  11.                         return System.getProperty("user.home") + "/Your_Client_Name_Cache/";
  12.                 }
  13.         }
Language:
To highlight particular lines, prefix each line with @@





© 2012 - Powered by PASTE 1.0