• 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...
0
gaugeta
Asked:
gaugeta
  • 2
1 Solution
 
for_yanCommented:
you can use Properties object and use loadProperertis method to read properties from file
0

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