• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Finding the end of the file

 
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to Find the end of the file using loops

Thanks in advance
 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is this what you want??
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic