daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Jun 4th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void Properties()
  2. {
  3.     try {
  4.         File propertyFile = new File("properties.ini");
  5.         if (!propertyFile.exists())
  6.         {
  7.             propertyFile.createNewFile();
  8.             new FileOutputStream(propertyFile).write(("[login]"+systemLineSeparator+"username="+Base64.encodeString("Username / Email")+systemLineSeparator+"password="+Base64.encodeString("Password")).getBytes());
  9.         }
  10.         properties.load(new FileInputStream(propertyFile));
  11.     } catch (IOException ex) {
  12.         Logger.getLogger(Properties.class.getName()).log(Level.SEVERE, null, ex);
  13.     }
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top