 | Chapter Objectives (See related pages)
After you have read and studied this chapter, you should be able to- Include a JFileChooser object in your program to let the user specify a file.
- Write bytes to a file and read them back from the file, using FileOutputStream and FileInputStream.
- Write values of primitive data types to a file and read them back from the file, using DataOutputStream and DataInputStream.
- Write text data to a file and read them back from the file, using PrintWriter and BufferedReader.
- Write objects to a file and read them back from the file, using ObjectOutputStream and Object-InputStream.
|
|