Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading from a text file 1

Status
Not open for further replies.

abyinsydney

Programmer
Feb 17, 2004
99
AU
greetings folks
i need to read from a text file and use the value of the variable in my java code .Can any one suggest how to use it.

is it some thing got to do with prop properties in jdk

The txt file would be a read me file
thanx in advance
aby
 
If your file looks like this :

aaa=111
bbb=222
ccc=444

then use a Properties object.

Otherwise use a BufferedReader and a FileInputStream or FileReader objects.

Just look at he java.io package.
 
greetings sedjtahnx for the input how do i use the object slightly confused could you let me the syntax briefly


than
aby
 
sedj
the one who have mentioned is about buffereed reader please let me know the synatax yo use properites object


thanx
aby
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top