How to Read text files sing JAVA

By using InputFileReader Class

Showing Answers 1 - 1 of 1 Answers

Rohit Sachan

  • Jul 15th, 2006
 

To read text file use

FileInputStream fis = new FileInputStream("MyFile.txt");

ObjectInputStream ois = new ObjectInoutStream(fis);

//now u can read this object ois

Object obj = ois.readObject();

this with an object to which u got to cast again.

I hope it make sence :)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions