Download the JDK
Search the Tutorials
Hide the TOC
Trail: Essential Classes
Lesson: Basic I/O
Basic I/O
I/O Streams
Byte Streams
Character Streams
Buffered Streams
Scanning and Formatting
Scanning
Formatting
I/O from the Command Line
Data Streams
Object Streams
File I/O
File Objects
Random Access Files
The New I/O Packages
Summary
Questions and Exercises
Home Page > Essential Classes > Basic I/O
File I/O

> So far, this lesson has focused on streams, which provide a simple model for reading and writing data. Streams work with a large variety of data sources and destinations, including disk files. However, streams don't support all the operations that are common with disk files. In this part of the lesson, we'll focus on non-stream file I/O. There are two topics:
> - `File` is a class that helps you write platform-independent code that examines and manipulates files and directories.
> - Random access files support nonsequential access to disk file data.

Previous page: Object Streams
Next page: File Objects