• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Storing data into excisting file

 
Chennarao Marvatu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
posted October 30, 2004 06:48 AM
--------------------------------------------------------------------------------
Dear all..
I have a property file at client side .i have to get the
some properties from the server side and store them in the
excisting client properties file..please help me out in this .
i have done like this but not working..

HashMap versionUpdates=secReqObject.getVersionInfo();
String notificationServ = (String)versionUpdates.get("NotificationServerName");
String notificationUser = (String)versionUpdates.get("NotificationServerUName");
String notificationPass = (String)versionUpdates.get("NotificationServerPwd");

StringBuffer sb1 = new StringBuffer();
sb1.append("###NOTIFICATION SERVER");
sb1.append("\r\n");
sb1.append("NotificationServerName=");sb1.append(notificationServ);
sb1.append("\r\n");
sb1.append("NotificationServerUName=");sb1.append(notificationUser);
sb1.append("\r\n");
sb1.append("NotificationServerPwd=");sb1.append(notificationPass);
sb1.append("\r\n");
System.out.println("PROPERTIES FROM SERVER"+sb1);
FileWriter f = new FileWriter(iniFilePath,true);
f.write(sb.toString());
f.close();

2) one more question is i want to store the Login time in the Client
Property file how can i do that please send me code ..i have to FINISH
this task today itsele...I will be very grateful to u

Thanks in advance
chennarao
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is a crossposting to intermediate, advanced and ... ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic