O'Reilly logo

Sams Teach Yourself Java in 24 Hours, Eighth Edition 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

HOUR 20Reading and Writing Files

This Hour’s To-Do List:

Image Read bytes from a file into a program.

Image Create a new file on your computer.

Image Save an array of bytes to a file.

Image Make changes to the data stored in a file.

There are numerous ways to represent data on a computer. You already have worked with one by creating objects. An object includes data in ...

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