Link to home
Start Free TrialLog in
Avatar of internetcreations
internetcreations

asked on

Variable data in properties file?

Hello,

I'm trying to set a variable value in a Java properties file.  I want it to incorporate current datetime in the value.  Here's an example:

#Begin my.properties
a=yyyymmddhhmmss_123
#End my.properties

where 'yyyy' is the current year, 'mm' the current date, and so on.

I'm sure it's relatively simple, but I'm relatively muddleheaded today.  Thanks for your help!
SOLUTION
Avatar of nathana21
nathana21
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Use the following to format your entries, and the code postyed by nathana21 to read/updatye and write your Properties.
:-)