This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes read a text file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "read a text file " Watch "read a text file " New topic

read a text file

Raghavendra U Ganiga

Joined: Jan 23, 2006
Posts: 5
Hello Guys

can anybody give me suggestion regarding the text file reader.

Actually i want to read a XML file and display 10 records per page .
how is it possible. any solution?

Manoj Kumkumath
Ranch Hand

Joined: Dec 01, 2005
Posts: 71
1)Use appropriate class in io package to read your file(FileReader etc).
2)Use a parser to convert the input to a Document.
3)Display it as you wish

Have you checked out Aspose?
subject: read a text file
It's not a secret anymore!