public UserWriter() { try { initWriter("Files/User.txt"); } catch (Exception e) { LogUtil.getLogger().error(e); } }
private void writeUser(User aUser) { String date = df.format(aUser.getBirthday().getTime()); String s = "" + aUser.getUserId() + ";" + aUser.getName() + ";" + aUser.getEmail() + ";" + aUser.getGender() + ";" + date + ";" + aUser.getPassword() + ";" + aUser.getImage() + "\n"; try { writer.write(s); } catch (IOException e) { LogUtil.getLogger().error(e); } }