File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes Storing data into excisting file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Storing data into excisting file " Watch "Storing data into excisting file " New topic

Storing data into excisting file

Chennarao Marvatu
Ranch Hand

Joined: Aug 09, 2004
Posts: 32
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");
System.out.println("PROPERTIES FROM SERVER"+sb1);
FileWriter f = new FileWriter(iniFilePath,true);

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

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

this is a crossposting to intermediate, advanced and ... ?
subject: Storing data into excisting file
It's not a secret anymore!