• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java file along with Properties  RSS feed

 
Revathi Muthukrishnan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Need to know how i can store a value in File which is in Properties?

Here I am placing my Properties code :

ReportHTML C:/bea/user_projects/domains/OICDomain/applications/IIMS/IIMS/target/source/REPORT_HTML_DUMP/
ReportEXCEL C:/bea/user_projects/domains/OICDomain/applications/IIMS/IIMS/target/source/REPORT_EXCEL_DUMP/

My Java File :

File destHtmlFolder = new File("C:/bea/user_projects/domains/OICDomain/DOC_SERVER/REPORT_HTML_DUMP");
File srcExcelFolder = new File("C:/bea/user_projects/domains/OICDomain/applications/IIMS/IIMS/target/source/REPORT_EXCEL_DUMP");

Instead of adding file name manually(which is in red color).I want to do it from Properties file.
Please help to resolve this issue..
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Class java.util.Properties (<= click link for api docs) has methods for loading and saving Java *.properties files.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!