• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Finding the end of the file

 
Mahesh Lohi
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to Find the end of the file using loops

Thanks in advance
 
bhanu chowdary
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this what you want??
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic