[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

Appconfig

I have to retrieve the date from the appconfig file
which is having the file tag format as follows

<date="23/09/06" Counter=1>

and check the date if it is current date increment
the counter otherwise reset the counter to 0.

How can i do this?
0
Rahamathulla_J
Asked:
Rahamathulla_J
1 Solution
 
LordWabbitCommented:
You will have to load to config file seperately as it is readonly on program execution so you will not be able to update the counter.
Rather Create a Simple Class Storing this Data and serialise this to disk
0
 
daniel_ballaCommented:
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now