Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Properties()
- {
- try {
- File propertyFile = new File("properties.ini");
- if (!propertyFile.exists())
- {
- propertyFile.createNewFile();
- new FileOutputStream(propertyFile).write(("[login]"+systemLineSeparator+"username="+Base64.encodeString("Username / Email")+systemLineSeparator+"password="+Base64.encodeString("Password")).getBytes());
- }
- properties.load(new FileInputStream(propertyFile));
- } catch (IOException ex) {
- Logger.getLogger(Properties.class.getName()).log(Level.SEVERE, null, ex);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement