Part 4

File and Network I/O

This part presents reference information for Java classes that work with read and write files and work with data sent over a network. This includes classes that get input or display output via a console, which Java considers to be a type of file. It also includes classes for reading and writing files, working with directories and file paths, and sending and receiving data over a network.

Many of the classes described in this part involve the use of a Java I/O concept called streams. For general information about streams, see Streams (Overview).

In this part . . .

check.png Classes for manipulating files and directories

check.png Classes for reading and writing text files

check.png Classes for reading and writing binary files

check.png Classes for reading and writing to a console stream

check.png Classes for network IO

Get Java For Dummies Quick Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.