• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI PhoneBook Reading from disk

 
Royce Warren
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have part of my source files to display. This file actually writes to the file to be stored on the disk. I would like to know how to write the method for reading from the disk. Then I would like to know the method to display the information to the console. Any suggestions would be appreciated. Thanks

 
Campbell Ritchie
Sheriff
Pie
Posts: 49382
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

You will realise we don't simply give out answers to that sort of exercise.

That looks a complicated bit of code, which ought to be in its own methods, not all in the main method. What sort of format are you writing these files in? Is it text or binary? Have you come across classes which buffer outputs and inputs? Or the newer classes, Scanner and Formatter? Have you looked at the Java™ Tutorials where you should find something useful?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic