Skip to Main Content
Java 6 Illuminated: An Active Learning Approach, 2nd Edition
book

Java 6 Illuminated: An Active Learning Approach, 2nd Edition

by Julie Anderson, Herve J. Franceschi
February 2008
Intermediate to advanced content levelIntermediate to advanced
1288 pages
39h 39m
English
Jones & Bartlett Learning
Content preview from Java 6 Illuminated: An Active Learning Approach, 2nd Edition
11.3 Reading and Writing Text Files 757
Figure 11.10
The Inheritance Hierarchy for Output Classes
Writer
FileWriter
Object
BufferedWriter PrintWriterOutputStreamWriter
OutputStream
PrintStream
FileOutputStream ObjectOutputStreamFilterOutputStream
11.3 Reading and Writing Text Files
Java supports two file types, text and binary. In text files, data is stored as
characters; in binary files, data is stored as raw bytes. Different classes are
used for writing and reading each file type. The type of a file is determined
when the file is written to and depends on which classes were used to write
to the file. Thus, to read from an existing file, you must know the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition

JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition

Kathy Walrath, Mary Campione, Alison Huml, Sharon Zakhour
Java Illuminated, 4th Edition

Java Illuminated, 4th Edition

Julie Anderson, Hervé J. Franceschi

Publisher Resources

ISBN: 9780763749637