Specifications
Sun Services
Java™ Programming Language
Module 9, slide 20 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
File Stream I/O
• For file input:
• Use the FileReader class to read characters.
• Use the BufferedReader class to use the readLine
method.
• For file output:
• Use the FileWriter class to write characters.
• Use the PrintWriter class to use the print and
println methods.










