• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Assigning varaibles in java using files

Hi Experts...
I have a few static variables in my program which i assign by taking in arguments.
I want to assign these variables using files in java,but i dont want to read line by line and assign the values.
How do i achieve this in a simpler way.
Please help...
  • 2
1 Solution
you can use Properties object and use loadProperertis method to read properties from file

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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