Cover Page by Rogers Cadenhead

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

O'Reilly logo

Day 15. Working with Input and Output

Many of the programs you create with Java need to interact with some kind of data source. Information can be stored on a computer in many ways, including files on a hard drive or DVD, pages on a website, and even bytes in the computer’s memory.

You might expect to need a different technique to handle each different storage device. Fortunately, that isn’t the case.

In Java, information can be stored and retrieved using a communications system called streams, which are implemented in the java.io package and are enhanced by the java.nio.file package.

Today, you’ll learn how to create input streams to read information and output streams to store information. You’ll work with the following:

• Byte streams, which ...

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