This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Finding the end of the file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Finding the end of the file" Watch "Finding the end of the file" New topic
Author

Finding the end of the file

Mahesh Lohi
Ranch Hand

Joined: Jun 22, 2009
Posts: 150
How to Find the end of the file using loops

Thanks in advance
bhanu chowdary
Ranch Hand

Joined: Mar 09, 2010
Posts: 256
is this what you want??
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

@Bhanu: Please do not provide direct answers. Instead, provide hints, links to Javadocs, etc. JavaRanch is NotACodeMill, and we encourage people to DoYourOwnHomework. We'd rather teach people how to learn and think about programming than provide direct answers.

@Mahesh: If you're reading a file, how do you know you're at the end? The java.io.File API documentation might help you think of some ideas.

That aside, what are you trying to accomplish? What will you do once you're at the end?
bhanu chowdary
Ranch Hand

Joined: Mar 09, 2010
Posts: 256
David Newton wrote:@Bhanu: Please do not provide direct answers. Instead, provide hints, links to Javadocs, etc. JavaRanch is NotACodeMill, and we encourage people to DoYourOwnHomework. We'd rather teach people how to learn and think about programming than provide direct answers.

@David: Point noted. will take care of this in my future posts
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Finding the end of the file