Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to read and write contents of a properties file with \

user9043340Feb 29 2012 — edited Feb 29 2012
Hi,
I have a properties file located at server side. I want to read the contents of that file and do some modifications in it and place the properties file back to server.
my properties file look like below
FirstQuery=Select * from table1 \
where table1.name1='abc' \
and table1.age='xyz' \
and table1.place='qwe' \

I am able to read the contents of the file, after modification and when i save the file back ' \ ' is missing from the file. In my application i need \ at the end of each line now my file looks like this
FirstQuery=Select * from table1
where table1.name1='abc'
and table1.age='xyz'
and table1.place='changed'

It is a long query and i have copied only a small portion of it, Please help and let me know if reuires more info

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2012
Added on Feb 29 2012
13 comments
2,958 views