J2EEOnline
GofPatterns OOPortal
prev next prev next
Course navigation
Lesson 1
Java Files
Module introduction
Before we plunge into learning about readers and writers, let's take a slight detour from pure input and output (while still remaining in the java.io package) to learn about files. Dealing with files is an essential prerequisite for being able to use readers and writers.
In this module, you will learn how to:
  1. Manipulate files separately from their contents
  2. Find out what files already exist and how to create new ones
  3. Determine information about a file such as its name and size
  4. Use a random access file and how it differs from a sequential access file

You will also learn about directories, how to move around in them, how to switch from one to another, and how to list their contents.
Course navigation