O'Reilly logo

Java™ for Programmers: Deitel by Harvey M. Deitel - Deitel & Associates, Inc., Paul J. Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14. Files and Streams

Objectives

In this chapter you’ll learn:

• To create, read, write and update files.

• To use class File to retrieve information about files and directories.

• The Java input/output stream class hierarchy.

• The differences between text files and binary files.

• Sequential-access file processing.

• To use classes Scanner and Formatter to process text files.

• To use the FileInputStream and FileOutputStream classes.

• To use a JFileChooser dialog.

• To use the ObjectInputStream and ObjectOutputStream classes.

I can only assume that a “Do Not File” document is filed in a “Do Not File” file.

Senator Frank Church Senate Intelligence Subcommittee Hearing, 1975

Consciousness ... does not appear to itself chopped up in bits.... ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required