aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Storing data into excisting file " Watch "Storing data into excisting file " New topic
Author

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");
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


mchrao
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

this is a crossposting to intermediate, advanced and ... ?


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Storing data into excisting file
 
Similar Threads
i will be grateful to u
overwriting some part of file(UPDATING ONLY SOME PART)
Storing data into excisting Data
writing data into a file only some part
Writing data into file from a String variable